What about saving all the data in a WDDX packet / cookie using JS. Then when the form is first loaded, check for the cookie and warn the user that they started to fill out the form earlier, but did not finish. Ask them if they want to populate with stored values or start from scratch. Then when the submit button is clicked, delete any existing WDDX data.... You could update the WDDX data / cookie using a onchange handler on all field elements...
Brook At 07:18 PM 5/6/2003 -0400, you wrote: >I took a peek at Dan Switzer's client/server gateway jsaspi. I'm not sure >how this relates to my requirements? >I went through the samples and I don't see how I can implement this. > >Is there another way of "saving" the data somewhere rather than the >database until the user clicks on the save button. >I have 40+ fields to be entered in the form. I would hate for the user to >loose everything. Thus the automatic saving to the database every few minutes. > >I'm open to all suggestions. Please fire away! > > >On Wed, 7 May 2003 10:01:14 +1200, Matthew Walker wrote: > > > Hey I really think you need this to happen in the background. Having the > > form submit every two minutes would be horribly disruptive. Check out Dan > > Switzer's client/server gateway jsapi > > http://www.pengoworks.com/workshop/js/gateway/ > > > > > > > > > -----Original Message----- > > > From: Bushy [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, 7 May 2003 9:42 a.m. > > > To: CF-Talk > > > Subject: RE: Send to an action page using an image file as <input > > > > > > OK...but I'm not sure how to do that. Can you give an example? > > > > > > > > > On Tue, 6 May 2003 12:41:52 -0700, Ian Skinner wrote: > > > > > > > Just off the top of my head, but I'm pretty sure the action property of > > > the > > > > form is controllable/changeable with JavaScript through the DOM, so > have > > > > your autosave function temporarily change the action parameter to > > > > "autosave-action.cfm" when it runs. > > > > > > > > -------------- > > > > Ian Skinner > > > > Web Programmer > > > > BloodSource > > > > Sacramento, CA > > > > > > > > > > > > -----Original Message----- > > > > From: Bushy [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, May 06, 2003 12:29 PM > > > > To: CF-Talk > > > > Subject: Send to an action page using an image file as <input > > > > > > > > > > > > Hi, > > > > > > > > Below is my <form> tag: > > > > > > > > <form method="post" action="processFormSubmission-action.cfm" > > > > name="processFormSubmission"> > > > > > > > > By clicking on the "Save" image I want to be able to redirect to the > > > > "processFormSubmission-action.cfm" template. Currently it doesn't work > > > > properly because of the > > > > "bettersave" javascript. > > > > > > > > WHen the use submits the form I want to direct it to the > > > > "processFormSubmission-action.cfm" template. > > > > > > > > When the bettersave javascript runs every two minutes I want my other > > > > template to run autosave-action.cfm > > > > > > > > Any ideas? > > > > > > > > > > > > <input type="image" name="save" > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>save-icon.gif" > > > > onFocus="this.blur();"> > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

