WTH!
Its due to few issue:
one: dataType: json
Never use it, instead, call:
success: function(data) {
var result = eval("(" + data + ")");
}
2nd, when passing data parameter, makesure no tailing ,
example:
data: {x:1, y:2, },
success: function(data) {
},
notice the highlighted commas above,
if the array ended with no further variables, do not add comma.
No comments:
Post a Comment