![]() The result is an unassuming script that stores form data to the local storage of the user’s browser and restores it when the user reloads or reopens the page or opens the page in a new tab. I wanted the solution to be simple and easy to use, which would rule out the use of server-side magic. Implementing Gmail-like auto-saving of drafts is not straightforward at all. So, addressing the problem of user input at the stage of development seems more practical than expecting users to add to their skyscraper of extensions. The people with a direct line to users are Web developers themselves. Some users don’t have a clue what a browser extension is - many users don’t, in fact, which makes this approach inadequate on a large scale. But browser plugins lead to an even bigger problem: distribution. The product that does this best is Gmail, with its auto-save feature for drafts: just type away, and all of the content is stored automatically, without you even needing to press a button.Īfter releasing Sisyphus.js, I learned of Lazarus, an extension for Firefox and Chrome that helps to recover form data. Some forms also allow you to save your draft by clicking a button, but not all forms have this feature, and it’s not the most convenient solution. One common solution is to write one’s comments in a local document, saving the file periodically, and then copying and pasting the text into the form once it’s complete. Horrible, huh? Now, if only there was a way to recover that data, rather than undertake a Sisyphean pursuit. Imagine the storm of emotions felt by a user who had to add just a bit more information before submitting a form and then loses all data. This time, we’re presenting Sisyphus.js, a library developed by Alexander Kaupanin to provide Gmail-like client-side drafts and a bit more. The first article covered PrefixFree the second introduced Foundation, a responsive framework that helps you build prototypes and production code. This article is the third in our new series that introduces new, useful and freely available tools and techniques, developed and released by active members of the Web design community. But no one is protected from such minor catastrophes. Have you ever been filling out a long form online or writing an eloquent and spirited comment when suddenly the browser crashes? Or perhaps you closed the browser tab accidentally, or your Internet connection cuts off, or the electricity goes down (and, being ever obedient to Murphy’s Law, you had no backup power supply).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |