My AJAX call is:
$.ajax({
method: "GET",
contentType: "application/json; charset=utf-8",
url: "http://localhost:8080/viewalldoctorprofile",
dataType: 'jsonp',
crossDomain: true,
success : function(json){
alert("24254");
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
I can see the result JSON in inspect elements in the browser, but I'm getting an error:
Error: jQuery111306513629604596645_1434294948077 was not called
Please help me. Thank you in advance