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

2006-11-16 Thread floepi
Hi all, var options = { before: function(formArray, jqForm) { formArray = $.merge(formArray,$(#interfaceVariables).formToArray()) ; if (console) console.log(formArray); return true; }, target:

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

2006-11-16 Thread Mike Alsup
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. Yeah, you're creating a new array there. If you want to add

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

2006-11-16 Thread floepi
a = $(#interfaceVariables).formToArray(); $.each(a,function(){ formArray.push(this); }); Cool thanks. Now it works. Cheers Phil malsup wrote: The console output shows the altered array which contains a couple more objects. But this data does not get put in