I am trying to make a service call using jQuery's ajax function. I have tested it on my local environment in both IE and Chrome and it works fine. However after deploying our site to production, I can only get the service call to work in Chrome. Stepping through the code in the inspector I can see that it makes it into the ajax function in IE but the the request is never issued. I have used fiddler and can see the call when using Chrome but not IE.
var customers;
function AutoComplete(TheId) {
if (!customers) {
$.ajax({
type: "GET",
url: "api/customerapi",
dataType: "json",
async: false,
success: function (data) {
customers = data;
}
});
}
.... further code ....
}
Any ideas what could be going wrong here?