フィドラーで ajax 呼び出しが発生し、json 応答で 200 OK を返しますが、onload 関数がエラーになり、xdr.onload 行で「オブジェクトはこのプロパティまたはメソッドをサポートしていません」というエラーが表示されます。
if($.browser.msie) {
if(window.XDomainRequest == undefined) {
var xdr = new ActiveXObject('Microsoft.XMLHTTP');
} else {
var xdr = new XDomainRequest();
}
xdr.open("post", ajaxStatusUrl+"?buster="+ new Date().getTime());
setTimeout(function() {
xdr.send();
}, 1000);
xdr.onload = function() {
var JSON = $.parseJSON(xdr.responseText);
if(JSON == null || typeof (JSON) == 'undefined') {
JSON = $.parseJSON(data.firstChild,textContent);
}
processData(JSON);
};
xdr.onprogress = function() {};
xdr.ontimeout = function() {};
xdr.onerror = function() {
alert('error');
};
} else {
$.ajax({
type: "POST",
url: ajaxStatusUrl+"?buster="+ new Date().getTime(),
processData: true,
dataType: "json",
success: function(data) {
processData(data);
}
});
}
});