Re: Prompting a User to Save When Leaving a Page

2007-11-02 Thread Christian Alejandro Marquez Grabia
I have a problem while doing this... I am using Wicket 1.2.6 and when I attempt to leave the page after modifying the form, the alert pops up, but if I select Cancel, in order to remain in the page, everything that had Ajax stops working, without any visible errors. Any ideas? Did anyone had the

Re: Prompting a User to Save When Leaving a Page

2007-10-02 Thread swaroop belur
Have a look at this blog http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments Basically state of the form onload is compared to that of beforeonunload. Just understand the concept and modify accordingly. Here the author tries to add a behavior to form's page

Re: Prompting a User to Save When Leaving a Page

2007-10-02 Thread JulianS
Thanks, this is a great tip. swaroop belur wrote: Have a look at this blog http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments Basically state of the form onload is compared to that of beforeonunload. Just understand the concept and modify accordingly.

Prompting a User to Save When Leaving a Page

2007-10-01 Thread JulianS
I'd like to know if there is a way to prompt a user to save when leaving a page using Wicket 1.2.6. I need to display a confirmation message only if the form has been dirtied. There is a javascript-only solution http://www.4guysfromrolla.com/webtech/100604-1.shtml here . It's kind of ugly