I have the following ajax call that is supposed to call a page on different domain:
if ($.browser.msie && window.XDomainRequest) {
// Use Microsoft XDR
var xdr = new XDomainRequest();
xdr.open("post", "https://different-domain.aspx");
xdr.onload = function() {
alert(xdr.responseText);// XDomainRequest doesn't provide responseXml, so if you need it:
};
xdr.onerror = function() {
alert("Error " + xdr.responseText);
};
xdr.onprogress = function() {
alert('errored out');
};
var params = "fileName="+ file+"¶m02="+ param02+"¶m03="+ param03+"¶m05="+ param05+"¶m08="+ param08+"¶m11="+ param11;
alert(params);
xdr.send(params);
}
The code section in the onerror method is executed, but the xdr.responseText is nothing - empty. Can anybody point to me what I am possibly doing wrong?
I am trying to get to call an ajax page on a different domain - one shortcut would be to change the Internet security setting to "Allow across different domains", but I do not want to tell my users to do that.