Sha256: 11e9c6f7ddb437e1fd66b17c93b5bcf389a7e95b207e56992f80d538ce3ad46d
Contents?: true
Size: 969 Bytes
Versions: 1
Compression:
Stored size: 969 Bytes
Contents
# @title Zen.Autosave # Zen.Autosave Zen.Autosave automatically saves form data at a given interval. Automatically saving form data makes it more pleasant for users to work with their data as the risk of data loss is minimized. Basic usage of this class is as following: new Zen.Autosave( $('my_form'), 'http://localhost/admin/category-groups/autosave' ); When creating a new instance of this class you are required to specify a single Element instance as well as the URL to submit the data to. The element is specified as the first parameter, the URL as the second one. The optional third parameter can be used for setting optional options such as the interval and the HTTP method to use for submitting the data. By default the interval is set to 10 minutes, this can be changed as following: new Zen.Autosave(element, url, {interval: 300000}); This would cause the form data to be saved every 5 minutes instead of every 10 minutes.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zen-0.4.3 | guide/javascript/zen_autosave.md |