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.


Rick Faircloth wrote:
> 
> Very clever, Daemach!
> 
> Now, besides saving info on the fly,
> and preserving info from a session,
> what other practical benefits do you see for this?
> 
> And what if a session were abandoned?  What happens with
> the data?  Does it remain in the struct until the browser is closed?
> 
> Rick
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Daemach
> Sent: Thursday, March 15, 2007 10:44 AM
> To: [email protected]
> Subject: Re: [jQuery] *New jQuery plugin* - autoSave
> 
> 
> You can look here for a live demo until I can get something better on my
> blog:
> 
> http://beta.missionincrease.org/jQuery/autosave_example.cfm
> 
> 
> 
> matt2012 wrote:
>> 
>> this looks great a few working examples would really be appreciated
>> 
>> Matt.
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/*New-jQuery-plugin*---autoSave-tf3406522.html#a9495939
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/*New-jQuery-plugin*---autoSave-tf3406522.html#a9504139
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to