[jQuery] Re: post an array

2009-09-09 Thread Adonis
Hello, I managed to post my array by calling toString() javascript method : $.ajax({ type: "POST", url: "/addFeature/", data: {project_name:project_name, 'vertexArray':vertexArray.toString()}, success: function(msg){

[jQuery] Re: post an array

2009-09-09 Thread Alex Weber
You can't post a javascript object, its gotta be key-value pairs if the data is coming from a form you can do: var serial = $('#myform').serialize(); and post the variable serial if not then as far as I know you gotta convert the object into key- value pairs some other way! On Sep 9, 6