Jquery-instaform is a project mainly written in JavaScript, based on the BSD-3-Clause license.
A jQuery plugin that makes html forms ajax submit after changing
When a user makes a change to any input field that has been set up to be an instaform, the form is automatically submitted via ajax. Submits happen when the 'change' event fires or when the 'submit' event fires.
Users know if forms are instaforms by providing them with ui hints. jQuery UI classes are used to show 'ui-state-focus' while editing as well as 'ui-state-active' while submitting. If there is an error during submission the 'ui-state-error' class is added to the inputs.
Instaform has integration with the jQuery Validation Plugin. If validation fails while attempting to submit, it will cancel. The validation plugin will handle display of offenses.
Example:
$(function(){ $('#myform').instaform() })
$(function(){ $('#myform').instaform({ success : function(data, statusText, xhr, $form) { alert('success') } }) })
Tests -- This plugin was built using JSpec. To run the specs navigate to the src/spec/dom.html file in Firefox (other browsers do not seem to work).
Please refer to the LICENSE file.