[jQuery] Inject arbitrary data into ajaxForm using the before Callback

[jQuery] Inject arbitrary data into ajaxForm using the before Callback


Hi all,
var options = {
    before: function(formArray, jqForm) {
            formArray = $.merge(formArray,$("#interfaceVariables").formToArray()) ;
            if (console) console.log(formArray);
            return true;
},
    target: '#mainWindow'};
    $('#quickSearchForm').ajaxForm(options);
i would like to inject some extra information into the formArray used by
ajaxForm. Basically i have two forms - one where i put a searchvalue in and
another, which is static and contains information about the current state of
the interface.
The console output shows the altered array which contains a couple more
objects. But this data does not get put in the POST variables. Only the
unmodified data. Is that because formArray is a Pointer or something. Am at
a loss.
Thanks
Phil
--
View this message in context: http://www.nabble.com/Inject-arbitrary-data-into-ajaxForm-using-the-before-Callback-tf2647241.html#a7386994
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/