Just realised I missed this one out of my examples:
$('form').on('submit', function(form, evnt) {
evnt.stopDefault();
var data = $.Forms.getData(form);
data.one = 'more-variable';
$.HTTP.GET(form.node.action, data, { /* ... */ });
});
Or you could do it a slightly more abstract way, without dealing with events or the DOM directly:
$.Forms(function() { with(this) {
form('myForm').submitsUsingAjax();
when('myForm').responseArrives(displayResponseIn('#myDiv'));
before('myForm').isValidated(function(data) {
data.one = 'more-variable';
});
}});
Hope that helps!