On May 15, 5:47 pm, John Murtari <jmurt...@thebook.comwrote:
Quote:
Folks,
>
We are working on upgrading a web based application that allows the
user to type quite a long essay and then submit it to the web site for
processing. Occasionally, the user will lose their session/connection
to the web site/internet -- so after typing for 'hours', they hit
submit and end up back at the login page and often times lose all
their typing.
>
Javascript seemed like a good tool to use at the user end of the
connection -- they hit submit and we 'save' a local copy of the form
contents and give them an easy way to retrieve it if a session is
lost.
>
Found a nice approach and a great tutorial using cookies athttp://www.howtocreate.co.uk/tutorials/jsexamples/saveForm.htmlit
also supports periodic background saves before submit.
>
The only problem is a 4K limit on data we can save. We had
considered an AJAX type approach and periodically save data to
the web server, but that may be more work/complexity than it is
worth. I'd welcome any thoughts/recommendations.
>
--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/ you get more using flash LSOs
but saving using ajax, would be pretty easy and worth the effort. Save
as draft as in gmail shouldnt lock things up and you could offer a
button, either way (auto or manual) the errr would come back a lot
quicker and the user could take their own steps to save what they'd
done. So you could at least warn them of any issues, even if you do a
"null" has session gone post.