happens only in IE9 (it works fine in firefox) tried to reduce security settings to a minimum. I am not sure about other versions of IE because I have 9 installed.
Environment: asp.net 3.5 web forms scripting: Anthem.NET, jquery
the anthem script is trying to create an instance of XMLHttpRequest and not execute, I tried just creating it myself on the page and had the same error. in the same project, I created a new html page and it worked perfectly.
so it could be some kind of collusion of scripts ...
Is anyone
Here is the source code that fails (line 3), taken from the Anthem.NET framework that runs on the system:
function Anthem_GetXMLHttpRequest() { if (window.XMLHttpRequest) { // <-- This passes as True! window.XMLHttpRequest is {...} return new XMLHttpRequest(); // <---- Fails here } else { if (window.Anthem_XMLHttpRequestProgID) { return new ActiveXObject(window.Anthem_XMLHttpRequestProgID); } else { var progIDs = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var i = 0; i < progIDs.length; ++i) { var progID = progIDs[i]; try { var x = new ActiveXObject(progID); window.Anthem_XMLHttpRequestProgID = progID; return x; } catch (e) { } } } } return null;
}
here's the value of Window.XMLHttpRequest: 
and here is the picture of failure that I created myself: 
Update: Just found out that it works in compatibility mode! and when I return to normal mode, it works again! BTW: document mode is in Quirks mode (default)
source share