there’s this error that has been driving me nuts. I’m helping someone to setup his XML feed and for the life of me, I cant figure this one out.
Code to work with XML:
// Load XML
var xml = new ActiveXObject(“Microsoft.XMLDOM”)
xml.async = false
// Load the XSL
var xsl = new ActiveXObject(“Microsoft.XMLDOM”)
xsl.async = false
Upon loading it in Interneet Explorer, I get a JS error on line 190 saying ‘ACCESS DENIED’. Line 190 is the red text above.
Any ideas? i’ve googled this problem, but havent found anything concrete other than it might be an internet explorer security setting doing that.
I can view the page witohout any trouble at home, but when i try from other PCs from univ, it just doesnt work.
I need some help…big time. HELP!!!
Actually i too have encountered a very similar problem. I had to use a round about way to cater the “Access Denied”.
In Xmldom activex there are two functions to load xml
Load method to load a xml from a file, the string passed as a parameter is a filename along with path
LoadXML method to load a xml data directly by storing in string
The first method gives the “Access denied” problem so i tried to use the second method which did work
var fsoXML = new ActiveXObject(“Scripting.FileSystemObject”);
var XMLFile = fsoXML.OpenTextFile((“C:/Documents and Settings/test.xml”,1);
var Data = XMLFile.ReadAll();
var xml = new ActiveXObject(“Microsoft.XMLDOM”);
xml.async = false;
Please check the code, it will surely work