Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 13th, 2008, 02: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xpath problem deean XSLT 10 June 18th, 2008 12:23 PM
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



All times are GMT -4. The time now is 04:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.