SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML handling problem in firefox 3

    hi

    i am using zXml library 1.0.2 from NCZOnline

    i write this code(from "Wrox Proffesional Ajax" ) :

    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") {


    how can i fix it in FF3 ?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,717
    Mentioned
    103 Post(s)
    Tagged
    4 Thread(s)
    This is a known issue with firebug.
    http://code.google.com/p/fbug/issues/detail?id=857
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Aug 2008
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks alot for your help

    i couldn't find post thanks button


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •