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){
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
2 matches
Mail list logo