What\'s the best javascript library, or plugin or extension to a library, that has implemented autosaving functionality?
The specific need is to be able to \'save\'
If you're looking for simple and lightweight, I think the most lightweight you can get is using JavaScript's built-in setTimeout()
function. Use it in combination with your choice of framework for the AJAX, and you're good to go.
function autoSave()
{
$.get(URL, DATA); // Use any AJAX code here for the actual autosaving. This is lightweight jQuery.
setTimeout("autoSave()", 60000); // Autosaves every minute.
}
autoSave(); // Initiate the auto-saving.