On 2/3/06, Victor Moore <[EMAIL PROTECTED]> wrote: > Hi All, > > What is the best way to identify if a form has been changed? Currently I set > up a hidden field on the form on every onChange event. Then on the onUnload > I check the status of the hidden field and let the user know. Is this the > best (only) way to do it? >
Your easiest solution (obviously, my opinion) would be to head over to Dan Switzer's site and use his amazing qForms JavaScript library. It takes all the pain out of doing JS validation and it's incredibly robust. His API literally has a changedFields() method that does all the work for you. You would simply do: objForm = new qForm("myFormName"); alert( objForm.changedFields ); That's it. No need for your own hidden fields or anything. I'm telling you, Dan has done an incredible job of abstracting away the complexities of JavaScript: http://www.pengoworks.com/index.cfm?action=get:qforms Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231250 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54