Cf_FormSave - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Cf_FormSave

Description:

Can prevent user from leaving page when form value has changed (IE Only) ... DoUnload() function (MSIE Only) Protect Your Source Code! (Script Encoder from Microsoft) ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 13
Provided by: daina
Category:

less

Transcript and Presenter's Notes

Title: Cf_FormSave


1
Cf_FormSave
  • Do you wish to Save your changes??

2
Hello My Name Is.
  • Kevin Penny, Age 27
  • Advanced Macromedia Certified Developer (4.5 , 5)
    (soon to add MX? ? )
  • Developing Applications for over 5 years
  • Primary Database is SQL Server 2K
  • Favorite Tag ltcfdumpgt

3
Example Microsoft Word
  • Test Document.doc

4
Why the Need for a ltCF_FormSavegt ?
  • Needed a usable way to prevent users from
    submitting forms that had not changed
  • Needed to be generic (for all forms)
  • Needed to be fast (client side??)
  • Couldnt be too complex for other team members to
    implement on their forms

5
Options Available?? (Analysis)
  • Triggers in Database
  • Too cumbersome
  • Server Trip Required
  • Have to be coded for each proc/insert
  • Cold Fusion
  • Server side (not fast)
  • Generic?? Not really
  • Other Options?

6
Solution.
  • Client Side Solution using JavaScript
  • Generic in Nature
  • Browser insensitive (as much as possible)

7
Advantages
  • Save Server Resources
  • Save Network Resources
  • Save Database Processing etc.
  • Works on Multiple Forms On a Page
  • Knows what elements have changed
  • Works for ALL Form elements
  • Little Jscript knowledge required
  • Can prevent user from leaving page when form
    value has changed (IE Only)
  • Your boss will think youre a Genius!

8
Disadvantages
  • Multiple Forms are treated as a single entity (in
    this version of the tag)
  • Browser Version Issues Possibly (test your user
    browser base)

9
Browser Preview
  • MSIE
  • FireBird 0.7 !! (Mozilla Browser)

10
Code Walk Though
  • FinalCheck() function
  • DoUnload() function (MSIE Only)
  • Protect Your Source Code!
  • (Script Encoder from Microsoft)

11
Links / References
  • CF_FormSave Tag - http//commark.com/formsave/
  • Microsoft Script Encoder
  • FireBird Browser - www.mozilla.org/firebird

12
Questions?Thank You!
Write a Comment
User Comments (0)
About PowerShow.com