This Class supplies the basic interface for creating a form autosaver. Whem attached, the class will priodicaly save the field's data. Also, when it's first attached, it will check if a record exist for the field and retrieve it automaticaly.
The base Class is an empty interface, that does no saving / retrieving. Currently, there are 2 implementaions:
For construction, each implementation has a bit different parameters. Both the base and Autosave.Local use the following constructor:
var AU = new Autosave.Local(el,options);
Reuqest uses a couple more parameters:
var AU = new Autosave.Reuqest(el,saveUrl,retreiveUrl,options);
Request adds this option:
And storage also takes all of MooStorage options as well.
After constructing the autosaver, you might also need to call the attach method (by default), and than you are off to go.
For more on how to use the Request modoule, and what you will need on the server side, read the docs.
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.blog comments powered by Disqus