Jump to content

Ie Xml Parsing: Access Is Denied


tinfanide

Recommended Posts

function parseXML(method,xml,async){if(window.XMLHttpRequest){  xmlhttp = new XMLHttpRequest();  xmlhttp.open(method,xml,async);  xmlhttp.send();  }else {  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP") ;  xmlhttp.async=async;  xmlhttp.load(xml);  }xmlDoc = xmlhttp.responseXML;}parseXML("GET","assessment.xml",false);

Why in this XML parsing, IE7 reports

Access is denied.
  xmlhttp.open(method,xml,async);

Link to comment
Share on other sites

Don't use Internet Explorer to test AJAX on the local filesystem. We get threads about this all the time. Internet Explorer has extra security measures for AJAX on the local filesystem, so just test your AJAX applications in other browsers. On the server it will work fine for Internet Explorer. If you need to test AJAX for Internet Explorer download a server like WAMP and run the file on localhost.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...