On 8/28/06, Jay R. Ashworth jra@baylink.com wrote:
- Every few seconds while typing an email, it's saved as a draft
Does the JS/DOM implementation premit optimizing that to
- Every time, while typing in the edit box, that you pause for more
than N milliseconds, save the draft
?
Yes, because that's what Gmail actually does. Or, at least, I think it does. It may be rather more involved. I notice it hasn't saved this, despite my patiently waiting . . . ah, there it goes. I think it's kind of complicated how it decides (maybe it doesn't bother if you've only typed a certain amount?). Anyway, other stuff Gmail does with drafts:
* It has a Save Now button, right between Save and Discard. When the current text is saved, the button grays out and changes to read "Saved". * If you have a reply entered and try leaving the page, it shows a popup dialog asking if you want to discard changes (if not, it cancels the page-leave, but doesn't save the draft, I think).