I am doing XMLHttpRequest using ExtJS for a service that does not return a responseText, a total of 204 and a TotalNearby response header. The call works fine with Firefox, but with Internet Explorer 8, both alerts are empty. What am I doing wrong?
Ext.Ajax.request({
url: 'services/getNearby',
method: 'GET',
params: {
'lat': 34,
'lon': -90
},
headers: {
'Authorization': AUTH_TOKEN
},
success: function(response) {
if (response.status == 204) {
alert(response.getAllResponseHeaders());
alert(response.getResponseHeader('Total-Nearby'));
}
},
failure: function(response) {
alert('Server status ' + response.status);
}
});
source
share