that is called jsonp. You need to define a function named uploadPicture that will get called when the response arrives. jQuery handles that for you if you use the proper method (assuming the callback name can be set in the request):
$.getJSON('uploadpicture.php?callback=?, {some:'data'}, function(data) { alert(data.errors[0]); }); http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback On Jul 1, 10:16 am, theozmanbo <b.k.osbo...@hotmail.com> wrote: > Is it because of the uploadPicture part? Why isn't it valid? Sorry for all > these stupid questions. > -- > View this message in > context:http://www.nabble.com/simple-JSON-parse-problem%21%21%21-tp24283450s2... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.