ajax - upgraded to jquery 1.4.1 & now getting parse error -
I have tried to upgrade from jQuery 1.2.6 to 1.4.1. A JSON query is now unsuccessful with the error: "Parser, Invalid Label"
I have simplified the minimum code.
var jsonUrl = "process_01.php"; $ AZ ({type: "post", url: jsonUrl, data: "var = myVar", datatype: "Jason", preceded: function (msg) {}, success: function (msg) {}, error: function , TextStatus, errorThrown) {Warning ("An error has occurred (" + TextStatus + "" + Error + + ")");}}); return false; } The output of the php program is {"foo": "bar", "istru": "true"} I can see it in firebug
Ensure that your content type is set to App / Jason.
See also, it looks like your problem.
Comments
Post a Comment