Hi all,
var options = {
before: function(formArray, jqForm) {
formArray =
$.merge(formArray,$(#interfaceVariables).formToArray()) ;
if (console) console.log(formArray);
return true;
},
target:
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
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