hi,
My version : Application Express 5.1.2.00.09
1) not working - the confirmation window is not displayed
dynamic action : unload page
true : execute java script code
apex.debug.log("before unload page");
apex.message.confirm( "Are you sure?",function(){
apex.debug.log("selected OK");
});
apex.debug.log("after unload page");
log java console:
21:28:49.618 VM2695 desktop.min.js:2 before unload page
21:28:49.689 VM2695 desktop.min.js:2 after unload page
------------------------------------------------------------------------------------------------
2) working - the confirmation window is displayed
dynamic action : click button
true : execute java script code
apex.debug.log("before unload page");
apex.message.confirm( "Are you sure?",function(){
apex.debug.log("selected OK");
});
apex.debug.log("after unload page");
log java console
21:31:09.206 desktop.min.js?v=5.1.2.00.09:2 before unload page
21:31:09.256 desktop.min.js?v=5.1.2.00.09:2 after unload page
21:31:09.257 [Violation] Forced reflow while executing JavaScript took 33ms
21:31:10.663 desktop.min.js?v=5.1.2.00.09:2 selected OK
Why it does not work with the dynamic action "unload page" ?
please help
thank you