Sounds good... thanks for the info!

Rick

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: Thursday, March 15, 2007 5:39 PM
To: discuss@jquery.com
Subject: Re: [jQuery] *New jQuery plugin* - autoSave


All this plugin does is automatically ajax stuff somewhere - it doesn't deal
with storing data or anything like that.  You have to deal with that on the
server side.

For registered users I create a blank record in the database and timestamp
it as a create date.  Then they are updating the record with autoSave
instead of inserting a new record when they are done with the form.  If they
lose power or something, when they come back to the form I can see if that
record was already created for them using a cfid, some identifier like a
UUID stored in a cookie and attached to the record, or whatever other
session tracking mechanism you want to use.  When they "submit" the form, it
timestamps the record as a complete date.  All of my records are 1 to 1 so
I'm not worried about orphans but if I were, I would have a scheduled task
run occasionally to delete records with a null complete date and a create
date over x days ago.






_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to