One method is to have a hidden field on the page (default value 0 or no). If the form is modified change the value to 1 or yes ... On unload event check the value of the filed and take appropriate action.
Marius Milosav www.scorpiosoft.com It's not about technology, it's about people. Virtual Company (VICO) Application Demo www.scorpiosoft.com/vicodemo/login.cfm ----- Original Message ----- From: "Lee Fuller" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, January 13, 2002 12:57 PM Subject: Creating Session Var w/Javascript? > I believe we've covered this, but couldn't seem to find the answer in > the archives... > > Is there a way, via javascript, to set a session var's value? > Specifically, I would like to have "session.formchanged" set to "yes", > if a change is made to any form field on a form. Then, when they > attempt to leave the page, it will know to submit the changes. > > Suggestions? > > TTAIA! > > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists