hi
i write this code :
function fncXmlInterface(){
var oXmlDom = zXmlDom.createDocument();
oXmlDom.onreadystatechange = function () {
if (oXmlDom.readyState == 4) {
if (oXmlDom.parseError.errorCode == 0) {
var oRoot = oXmlDom.documentElement;
var oNode = zXPath.selectSingleNode(oRoot, "accountinfo/account", null);
if (oNode) {
alert(oNode.xml);
}
} else {
//Error! Gather the information an alert it to the user.
var str = "An error occurred!!\n" +
"Description: " + oXmlDom.parseError.reason + "\n" +
"File: " + oXmlDom.parseError.url + "\n" +
"Line: " + oXmlDom.parseError.line + "\n" +
"Line Position: " + oXmlDom.parseError.linepos + "\n" +
"Source Code: " + oXmlDom.parseError.srcText;
alert(str);
}
}
};
oXmlDom.load("getaccountinfo.xml");
}
it works fine in IE , firefox 2
but doesn't work in FireFox 3
fire bug error:
Permission denied to get property Element.tagName
__checkForErrors__()()zxml.js (line 179)
(?)()()zxml.js (line 109)
[Break on this error] if (this.documentElement.tagName == "parsererror") {
www.itgate.ir