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 September 20th, 2006, 10:42 AM
Registered User
 
Join Date: Sep 2006
Location: Lake Worth, FL, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question on NameSpaceBooks.htm

When executing the below piece of code from Ch04\XPath\Cross-Browser\NameSpaceBooks.htm, the program return 0 at
if (oNodes.length > 0), thus preventing the code to execute. (I am not including the whole program).

p.s I am using the latest zxml.js file

...... some code before

var sNameSpace = "xmlns:na='http://site1.com' xmlns:pub='http://site2.com'";

            //Select the nodes

       var oRoot = oXmlDom.documentElement;
       var sXPath = "na:book/pub:name";
       var oNodes = zXPath.selectNodes(oRoot, sXPath, sNameSpace);
       if (oNodes.length > 0) {
       alert(oNodes.length + " nodes selected with '" + sXPath + "'");
                        }


.....more code below

Armando




Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload_image.htm Chapter 7 jeroen BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 September 3rd, 2009 11:53 AM
How can i rewrite the example bookClient.htm Keyne XML 0 August 23rd, 2006 07:11 AM
Transformation htm of page in rss Serjio RSS and Atom 0 August 6th, 2006 02:14 AM
App_Offline.htm won't allow me to test. VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 5 March 2nd, 2006 10:46 AM
how to use recordType in htm/asp gilgalbiblewheel Classic ASP Databases 11 August 15th, 2004 12:06 AM





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