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

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

All times are GMT -4. The time now is 05:31 PM.

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