Download presentation
Presentation is loading. Please wait.
Published byPrimrose Parker Modified over 9 years ago
1
Cf_FormSave Do you wish to Save your changes??
2
Hello My Name Is…. Kevin Penny, Age 27 Kevin Penny, Age 27 Advanced Macromedia Certified Developer (4.5, 5) (soon to add MX? ) Advanced Macromedia Certified Developer (4.5, 5) (soon to add MX? ) Developing Applications for over 5 years Developing Applications for over 5 years Primary Database is SQL Server 2K Primary Database is SQL Server 2K Favorite Tag: Favorite Tag:
3
Example: Microsoft Word Test Document.doc Test Document.doc Test Document.doc Test Document.doc
4
Why the Need for a ? Needed a usable way to prevent users from submitting forms that had not changed Needed a usable way to prevent users from submitting forms that had not changed Needed to be ‘generic’ (for all forms) Needed to be ‘generic’ (for all forms) Needed to be fast (client side??) Needed to be fast (client side??) Couldn’t be too complex for other team members to implement on their forms Couldn’t be too complex for other team members to implement on their forms
5
Options Available?? (Analysis) Triggers in Database Triggers in Database –Too cumbersome –Server Trip Required –Have to be coded for each proc/insert Cold Fusion Cold Fusion –Server side (not fast) –Generic?? Not really Other Options? Other Options?
6
Solution…. Client Side Solution using JavaScript Client Side Solution using JavaScript Generic in Nature Generic in Nature Browser insensitive (as much as possible) Browser insensitive (as much as possible)
7
Advantages Save Server Resources Save Server Resources Save Network Resources Save Network Resources Save Database Processing etc. Save Database Processing etc. Works on Multiple Forms On a Page Works on Multiple Forms On a Page Knows what elements have changed Knows what elements have changed Works for ALL Form elements Works for ALL Form elements Little Jscript knowledge required Little Jscript knowledge required Can prevent user from leaving page when form value has changed (IE Only) Can prevent user from leaving page when form value has changed (IE Only) Your boss will think you’re a Genius! Your boss will think you’re a Genius!
8
Disadvantages Multiple Forms are treated as a single entity (in this version of the tag) Multiple Forms are treated as a single entity (in this version of the tag) Browser Version Issues Possibly (test your user browser base) Browser Version Issues Possibly (test your user browser base)
9
Browser Preview MSIE MSIE FireBird 0.7 !! (Mozilla Browser) FireBird 0.7 !! (Mozilla Browser)
10
Code Walk Though FinalCheck() function FinalCheck() function DoUnload() function (MSIE Only) DoUnload() function (MSIE Only) Protect Your Source Code! Protect Your Source Code! (Script Encoder from Microsoft) (Script Encoder from Microsoft)
11
Links / References CF_FormSave Tag - http://commark.com/formsave/ CF_FormSave Tag - http://commark.com/formsave/ http://commark.com/formsave/ Microsoft Script Encoder Microsoft Script EncoderScript EncoderScript Encoder FireBird Browser - www.mozilla.org/firebird FireBird Browser - www.mozilla.org/firebird
12
Questions? Thank You!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.