I am trying to grab the JSON from a URL with no luck. If I add the JSON file locally, It will work. I don't know what is it that I am doing wrong. If someone could help me with how I can use JSONP , which I think is the issue in the case, would be very helpful. Here is my code,
$.ajax({
type: "GET",
url: "http://srvblrevm98:8099/EVMEmployeeService.svc/GetuserInfo",
async: false,
data: {},
contentType: "application/json",
processData: true,
dataType: "jsonp",
crossDomain: true,
success: function (data) {
var myData = data;
console.log(data);
},
error: function (result) {
alert("Error");
}
});