i am trying to make a ajax call with dataType JSONP from my client side script, the service uri belongs to a restful wcf service which hosted locally.
Below is my client side script:
function callback() {
alert("callback");
}
$.ajax({
url: "http://localhost:999/Service1.svc/Get/rajesh",
// the name of the callback parameter
jsonp: "callback",
// tell jQuery we're expecting JSONP
dataType: "jsonp",
// work with the response
success: function (response) {
console.log(response); // server response
},
error: function ( jqXHR, textStatus, errorThrown) {
alert("errorThrown: " + errorThrown + " textStatus:" + textStatus);
}
});
i am get below Errors:
1) Error Alert message

errorThrown: Error: jQuery1910367527295252279_1387528759305 was not called textStatus:parsererror
2)Error at console

console error json object is incorrect but i think it is current. any help is appreciated
$(function() {})and check if that makes any difference