If you need to do the business operation I'm pretty sure you have to follow Matej's advice and implement ajax button to close it properly.
On 04/12/2007, narup <[EMAIL PROTECTED]> wrote: > > > Oh i take back my words :( > the window gets closed but due to some AJAX error, so clicking finish > button > doesn't do the business operation , that it should do. It just closes the > modal window with wizard. > > > narup wrote: > > > > yes it worked for me.. > > thanks Matej. > > > > > > > > wicket user wrote: > >> > >> I tried the javascript and never got it to suppress the pop up, did it > >> work > >> for you? > >> > >> On 04/12/2007, Matej Knopp <[EMAIL PROTECTED]> wrote: > >>> > >>> You need to use ajax button to properly close the window. > >>> Alternatively, you can put this script to your page (only for 1.3): > >>> > >>> <script type="text/javascript"> > >>> Wicket.Window.unloadConfirmation = false; > >>> </script> > >>> > >>> -Matej > >>> > >>> On Dec 3, 2007 7:48 PM, narup <[EMAIL PROTECTED]> wrote: > >>> > > >>> > Hello All, > >>> > > >>> > I am using a custom wizard in a modal window, so i have my own > custom > >>> button > >>> > bar such as next, previous, finish and cancel. > >>> > so when i click cancel or finish. i get this alert message. > >>> > http://www.nabble.com/file/p14136120/alert.jpeg > >>> > if i append the javascript like this > >>> > target.appendJavascript("window.onbeforeunload=null"); it cause the > >>> modal > >>> > window to close but it does not do the save operation that i want to > >>> when i > >>> > click finish button at the end. > >>> > I tried to use the new wicket 1.3 wizard but got the same problem > >>> > if anyone has any idea please let me know. > >>> > Thanks > >>> > > >>> > -- > >>> > View this message in context: > >>> > http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120 > >>> > Sent from the Wicket - User mailing list archive at Nabble.com. > >>> > > >>> > > >>> > > --------------------------------------------------------------------- > >>> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> > For additional commands, e-mail: [EMAIL PROTECTED] > >>> > > >>> > > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14160472 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
