[jQuery] Re: how to check if a form has changed

2008-12-03 Thread ggerri
Hi Sridhar you could do something like var vFlag; $('input').bind('change', function() { vFlag = 'X';}); Then you can check with window.onbeforeunload mentioned earlier if things have changed and react accordingly. Regards Gerald On Dec 2, 4:46 pm, Web Specialist [EMAIL

[jQuery] Re: how to check if a form has changed

2008-12-02 Thread MorningZ
Just like what the groups here on Google use, you can use the JavaScript event onBeforeUnload to look for changes http://www.google.com/search?q=javascript+onbeforeunload On Dec 2, 9:15 am, Sridhar [EMAIL PROTECTED] wrote: Hi,      we are trying to give a feedback to the user if the user

[jQuery] Re: how to check if a form has changed

2008-12-02 Thread Web Specialist
Try this http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo3.htm Cheers Marco Antonio On 12/2/08, Sridhar [EMAIL PROTECTED] wrote: Hi, we are trying to give a feedback to the user if the user has changed some values in the form and tries to close the form with out saving the