devGOD
10-11-2010, 03:25 PM
jQuery Plugin: http://plugins.jquery.com/project/autosave
I've been trying for 3days to get this plugin to work, I've contacted the developers and no response. the demo on the site seems to work with a json output but the downloaded code & example does not work. I'm trying to get it to work with PHP as the backend and nothing. The instructions are very vague like a lot of jquery plugins. Are there any developers or experience jquery plugin users that can assist with telling me how to get this plugin to work correctly?
thanks in advance
Usage:
To simply autosave a form to its action url its simple:
$("form#myForm").autosave();
This shows the various options you can pass in to autosave:
$("input").autosave({
// Defaults to parent form url or window.location.href
url: url,
// Defaults to parent form url or get
method: "post",
// Defaults to false. Whether all "input" should be sent in the request or only the one it was triggered upon
grouped: true,
success: function(data) {
console.log(data);
},
// Defaults to JSON, but can be XML, HTML and so on
dataType: "json",
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);
}
});
I've been trying for 3days to get this plugin to work, I've contacted the developers and no response. the demo on the site seems to work with a json output but the downloaded code & example does not work. I'm trying to get it to work with PHP as the backend and nothing. The instructions are very vague like a lot of jquery plugins. Are there any developers or experience jquery plugin users that can assist with telling me how to get this plugin to work correctly?
thanks in advance
Usage:
To simply autosave a form to its action url its simple:
$("form#myForm").autosave();
This shows the various options you can pass in to autosave:
$("input").autosave({
// Defaults to parent form url or window.location.href
url: url,
// Defaults to parent form url or get
method: "post",
// Defaults to false. Whether all "input" should be sent in the request or only the one it was triggered upon
grouped: true,
success: function(data) {
console.log(data);
},
// Defaults to JSON, but can be XML, HTML and so on
dataType: "json",
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);
}
});