Autosave for posts.

Status
Not open for further replies.

skyler

Ars Legatus Legionis
17,407
I just lost an entire post because I accidentally closed my window. You know what? Other forum softwares allow you to save a draft for the post you are making to your Private Messages system. Can UBB.x do this? Well, golly, it sure can! Not only can it do that--but it can autosave your post *and* ask you 'hey, Joe User, do you really want to close that window?'

Does it do it now? No, but after this post I sure hope it will.

Remember, a User Interface doesn't actually live up to its name if it doesn't include the User. I will not accept any other responses besides 'this is a feature we will include in the next release.' Thank you for your time.
 

Magus`

Ars Legatus Legionis
30,136
Subscriptor++
Originally posted by alohadave:
Why do you need to keep the window from closing? It seems like it would just need to capture the contents of the text box every x seconds and keep it in a temp location.

But when do you remove it? How much do you allow?

If too many people have autosaved entries, do you just delete them? -- ;) --

Originally posted by sryan2k1:
Works in FireFox 1.0.7

Maybe a vanilla install, but it fails to close a tab or window here -- :) --
 

alohadave

Ars Legatus Legionis
22,496
Subscriptor++
Originally posted by Magus`:
Originally posted by alohadave:
Why do you need to keep the window from closing? It seems like it would just need to capture the contents of the text box every x seconds and keep it in a temp location.

But when do you remove it? How much do you allow?

If too many people have autosaved entries, do you just delete them? -- ;) --


Good questions, that would need to be addressed by policy if it were to be enacted.

For a reasonable level, I'd say that it only keeps the most current autosave for a set period of time, maybe an hour at most, then scrubs the autosave out.

The goal is not to have drafts, it's to save your post if you've spent several minutes writing it and do something stupid like closing out the window.

But, would autosaving posts every 30-60 seconds or so, for many thousands of users tax the system? Maybe it could be a subscriber feature?
 

Pontiphex

Ars Legatus Legionis
13,182
Subscriptor
Why not save it somewhere client-side? Have it save the text of the message to window.opener.somethingorother?

This will at least cover your ass if you close the reply window, assuming the parent window is left alive.

The other idea would be to set up a web service that holds these drafts - it's data store could be RAM.

Then the reply window has a interval timer that saves the draft every 30 seconds or so via an XmlHttp call to the web service. You could even use a javascript gzip implementation and compress the text before it is sent.
 
Status
Not open for further replies.