|
Q: How do I make it work for an Existing Form?
A: It's as easy as adding a function to your form's onsubmit event like so:
<cf_FormSave>
<form name='x' onsubmit="if(FinalCheck()==false){alert('Nothing in your form has changed.'); return false;}else{global_doOnUnload=false;}">
......
</form>
</cf_FormSave>
Q: What if I'm using CFFORM?
A: Same principle applies. You can use the passthrough attribute of the CFFORM or the onsubmit to put your jscript code (like above).
Q: What if I am using Microsoft Internet Explorer and want to make sure if the user leaves the page and has made a chage to the form, that they are prompted to save?
A: Simply Add the code to your body tag in your document:
<body onbeforeunload="DoUnload()">
Q: Does this tag work in Netscape?
A: YES
Q: What if I have values in my form when the page is loaded and I change something?
A: The beauty of this tag is that it remembers what values your form had when your page is loaded. That's how it knows you changed something!
Q: How is this different from the way that Microsoft Word or Excel works?
A: This is different in that if you open a previous document in word, and change one letter in the document, then change it back to how it was, Word will prompt you to save the document. WHY?!! You haven't really changed anything! That's why this is so great. It knows what you changed, and what the values were before you made the change.
Q: How does this tag reduce network traffic and save server resources?
A: By eliminating useless updates for forms that have not changed you will reduce unnecessary network traffic and save your server and database from processing and updating pages and data that have not really changed.
** As an added bonus, it also acts to prevent form submissions of empty forms (forms with no data).
Q: How can I purchase this tag?
A: There are two ways to do this:
- Click on the PayPal Link on this page
- Go to the Tag Gallery at Macromedia
Q: How can I monitor a single form on a page, when I have multiple forms on the page?
A: That's a new feature in Version 1.1! (Please specify which version you would like)
Verified Users
Aaron Hoy
I Like That Site.com
Thomas Hanson
thwebs.com
|