Hi,
I'm trying to get an xml file using an xmlhttprequest with the GET method. My request works fine with any browser except internet explorer.
This one send no http request at all. (using wireshark to monitor).
I thought about a caching issue but it should work at least once.
My code is the following:
var req;
var xmlDoc;
function GetXmlHttpObject()
{
if (window.XMLHttpRequest){
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject){
// code for IE6, IE5
return new ActiveXObject("Microsoft.XMLHTTP");
}
return null;
}
function initTxCfg()
{
req=GetXmlHttpObject();
if (req==null)
{
alert ("Your browser does not support XMLHTTP!");
return;
}
var url="TxCfgData.xml";
req.open("GET",url,false);
req.send(null);
xmlDoc=req.responseXML;
...
}
...
Anyone has a clue why ie doesn't send the http request?