jQuery Autosave
Tracks the state of a form and calls an autosave action when things change.
jQuery Autosave Resources:
- jQuery Autosave Project Page
- Download jQuery Autosave
- Explanation of jQuery Autosave Options
- Version Change Log
Options
| Option: | Default: | Explanation |
|---|---|---|
| url | undefined | When undefined, the autosaver will call the form's action in an ajax request. If you define this method you should either specify a URL for the ajax method or a function, like function(e,o,callback) {} which handles the autosaving action. |
| interval | 60000 | The interval at which the autosaver should fire off a save action at. |
| monitor | 3000 | The interval at which the autosaver should check the form to see whether or not it has been dirtied. |
| setup | function(e,o) {} | Callback when the autosaver is setup. |
| record | function(e,o) {} | Callback when the autosaver records the state of the form. |
| save | function(e,o) {} | Callback when a save event is fired off. |
| shutdown | function(e,o) {} | Callback when the autosaver is shutdown. |
| dirty | function(e,o) {} | Callback for when the autosaver finds dirtied data. |
Additionally it is worth noting that if you include the class autosave-ignore on any form node that node will be ignored by the autosaver.
Changelog
Version 1.0.0
- Initial release.
Find me on...
Shortened URL for this page: http://blog.stanlemon.net/76