Autosave is a flexible autosave plugin for jQuery. If yo want to autosave a form use this simple code.
Features
* Send entire form when one element changes
* Send just the changed element
* Form buttons and input:submit is not sent unless clicked
* Override action/method parameter of form or fallback
* Send elements from multiple forms in one request
* Callbacks on sending, success and error
Usage:
$("input.autosave").autosave({
url: url, // Defaults to parent form url or window.location.href
method: "post", // Defaults to parent form url or get
grouped: true, // Defaults to false. States whether all "input.autosave" should be sent in the request or only the
one it was triggered upon
success: function(data) {
console.log(data);
},
dataType: "json", // Defaults to JSON, but can be XML, HTML and so on
send: function() {
// Do stuff while we wait for the ajax response, defaults to doing nothing
console.log("Saving");
},
error: function(xmlReq, text, errorThrown) {
// Handler if the ajax request fails, defaults to console.log-ing the ajax request scope
console.log(text);
}
});
// Submits entire form each time one of the
// elements are changed
$("form#myForm").autosave();
Todo:
Support timed autosave for textareas
Demo: http://dllurl.com/60
Download: http://dllurl.com/59
Source: http://dllurl.com/60

Related Listings:
RSS feed for comments on this post. TrackBack URL
December 29th, 2009 at 11:12 am
[...] This post was mentioned on Twitter by shzad1, Eyes Drinker. Eyes Drinker said: RT @3gcreations Autosave – Flexible Jquery Plugin http://bit.ly/4DTk2d [...]
December 31st, 2009 at 9:38 am
[...] found this post on DZone about an form autosave plugin for JQuery, i visited the plugin page, read about everything that is capable to do, and concluded that it [...]
February 11th, 2010 at 1:29 pm
[...] Autosave – Flexible Jquery Plugin Autosave is a flexible autosave plugin for jQuery. If yo… [...]