jquery ajax json syntax error
But then I remembered it was a parsing error, so I look through the web, and I saw someone had a similarly case, but they echo jsonencode Email codedump link for Jquery ajax syntaxerror json.parse unexpected character at line 1 column 1 of the json data. Email has been send. Instead of using return, you should echo out your json, if its the end of the script execution you can use exit.
parse: unexpected character parsererror. Im using JQuery Version 1.7.1.I should have mentioned my JS file correctly here. its the target url param in ajax function. i thought its not required. lol. Anyway, this was my real coding which was giving me the parse error Jquery Ajax Json Error Response.Convenience methods If were just making a simple request — and if we dont care about error handling — jQuery provides several "convenience methods" that let us use an abbreviated syntax. Learn AJAX, jQuery and JSON from scratch at Udemy.com. JSON Basic Syntax .2) You can also add a parameter called error. This parameter is used to execute when the server request fails.