Jquery.localStorageTextareas
github.com
github.com
However, this appears to have more limitations than sisyphus, where you can simply call the library and have all form data saved to local storage:
$('form').sisyphus();However, I would say, that for 4kb (minified), sisyphus offers a lot of functionality - and is supposedly cross-browser compatible. If you want to limit it to textareas only, it's not much of a modification.
Anyway, just thought I'd point out an alternative, and thanks again for sharing your work!
Chrome: https://chrome.google.com/webstore/detail/loljledaigphbcpfhf...
Firefox: https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-...
Imagine you're writing a long response to a blog, and just as you are about to hit Submit, the page crashes. Now you can reload the page and your text will still be there!
We use this for Teambox, where users type long long descriptions for some things.
textarea[data-save-id]
to
form *[data-save-id]
I dont even know if that is a valid sizzle selector thoughIs the JavaScript library thing getting a little out of hand?
The functionality that this offers is but a few lines of unencumbered code with zero dependencies (obviously gracefully not doing anything if the browser supports it).
I just removed the Modernizr dependency. I kept jQuery 1.7. I kept underscore.js for the great _.debounce function.