A form <a href="http://github.com/ftlabs/fruitmachine">FruitMachine</a> helper. Hijacks the form's submit event and turns it into an ajax request. Dependent on <a href="https://github.com/visionmedia/superagent">superagent</a>.
If you want your
<form>'s ajax request to use a different URL than its action attribute, set a data-action.
<form method="post" action="/login" data-action="/login.json">[...]</form>
Currently compatible with standard
To catch the response from the ajax request simply implement
onSubmitResponse on your module.
onSubmitResponse will be called with the same parameters as superagent's end method.