Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

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

                    } 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;



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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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

All times are GMT -4. The time now is 04:53 AM.

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