I can't access the data retrieved from an AJAX request on IE11. I am sending an AJAX request using Jquery:
In Chrome an FF i have a responseText field that i can easily access in the response object.
var ExternalApiService = (function(){
var getTimeGMT = function(){
return $.get("{api_path}.php",function(data, textStatus, jqXHR){
return jqXHR.responseText;
});
};
return{
getTimeGMT: getTimeGMT
}
})();
Then, when i call
ExternalApiService.getTimeGMT()
On Chrome and FF the object that i get in response has a responseText field that i can easily access. In IE11 i don't have that field.
Yet, in the IE developer tools, on Network, inside the API call, if i click on the right side on Body => Response body, i can see that i have the text that i need. The API call worked, i just can't access the response body.
How do i access that data?