TELIZE API DOES NOT GIVE ANY RESULT IN INTERNET EXPLORER BROWSER 9 AND BELOW. REQUEST WAS MADE VIA AJAX REQUEST LIKE THIS:
$.ajax({
url: ‘https://telize-v1.p.mashape.com/geoip’,
type: ‘GET’,
data: {},
dataType: ‘json’,
success: function(data) {
countryCode = data.country_code;
},
error: function(err) {
alert(err);
},
beforeSend: function(xhr) {
xhr.setRequestHeader(“X-Mashape-Authorization”, <<key>>);
}
});
THE SAME REQUEST WHEN MADE VIA CHROME, OR FIREFOX I GET FINE RESULTS
Join in the discussion - add comment below:
Cool, thanks !
Hello,
This is an Internet Explorer specific issue. Unfortunately, I cannot help on this topic.
You could try changing authentication methods to see if the issue is caused by sending authentication HTTP headers.
Documentation regarding Authentication Settings is available here : http://docs.mashape.com/auth-settings
Regards.
Hi fcambus,
We need to support Telize API response in IE 9 and below versions. As gargsuchi mentioned, we are using jQuery 1.10.2. The error response that we get in IE9 is :
{readyState: 0, responseJSON: undefined, status: 0, statusText: “No Transport”}
And for the same request in Chrome, FireFox, Safari we get a successful response :
Object {offset: “5”, longitude: 77.32, city: “Noida”, timezone: “Asia/Kolkata”, latitude: 28.57…}
We are using version 1.10.2
Ok, thanks a lot… I’ll check that
Hi,
I mean the library you are using to make the API request. For example, jQuery 2.x does not support Internet Explorer 6, 7, or 8.
Regards.
Hi,
Could you please be specific with this line -
"Please make sure the library you are using to perform requests has support for the Internet Explorer versions you are targetting."
We are using the Telize Geo IP library. Do you mean something other than this ?
Hello,
As you noticed, it works fine on Chrome and Firefox, which means it’s not an issue with Telize API endpoint.
Please make sure the library you are using to perform requests has support for the Internet Explorer versions you are targetting.
Regards.