Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2008, 01:07 AM
Registered User
 
Join Date: Aug 2008
Location: new york, NY, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to asadallahi Send a message via Yahoo to asadallahi
Default xpath problem in firefox 3

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




Similar Threads
Thread Thread Starter Forum Replies Last Post
Xpath problem deean XSLT 10 June 18th, 2008 11:23 AM
XPath problem meps XSLT 2 December 21st, 2005 06:14 AM
firefox problem axeman XSLT 0 November 21st, 2005 10:35 AM
XPath problem alexiev_nikolay C# 0 February 6th, 2004 03:40 AM
XPath Problem babloo81 Beginning VB 6 4 November 14th, 2003 01:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.