[jQuery] Re: show dynamic changes when a refresh occurs

2009-07-17 Thread Theodore Ni
James has some good ideas. If they still don't work for you, you can consider storing the new form values in a cookie. Ted On Thu, Jul 16, 2009 at 7:42 PM, James james.gp@gmail.com wrote: The data is still there since the browser does a cache of the form info, but dynamically created

[jQuery] Re: show dynamic changes when a refresh occurs

2009-07-17 Thread Terry
Thanks for the ideas. The onbeforeunload event sounds like what I need. I did try the hidden field already. As you guessed it does not work; you need to get the data to know how many fields to create dynamically and then it is too late to have the dynamic fields filled in I'm guessing. Now I

[jQuery] Re: show dynamic changes when a refresh occurs

2009-07-17 Thread James
The ideal way is to only show the popup alert when the user actually has modified something on the form. So if the user visit the page, does nothing, hits refresh, the alert should not pop up. If it does it'll annoy the user. Add it only when the form info is changed, and the user is not

[jQuery] Re: show dynamic changes when a refresh occurs

2009-07-16 Thread James
The data is still there since the browser does a cache of the form info, but dynamically created elements do not get cached in the same way, unfortunately. I haven't tried this before, but one thing you can try is to have a hidden input in your form, and the purpose of this is to store the