I am trying to perform some basic operations with jquery json.
var urlPath= encodeURIComponent('{"fields":"subject,course,unit,topic,lesson"}');
$.ajax({
url : 'http://abcd.org/proficiency.json?data'+urlpath,
type : 'GET',
dataType : 'jsonp',
contentType: "application/json",
success : function(data) {
console.log("success");
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
console.log(XMLHttpRequest, textStatus, errorThrown);
}
});
The error callback is always triggers
Error... parsererror jQuery15001997238997904205_1298484897373 was not called.
How to fix it?
Thanks for reading..