Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Ruby on Rails
This is the forum to discuss the Wrox book Beginning Ruby on Rails by Steve Holzner Ph.D.; ISBN: 9780470069158
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ruby on Rails 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 January 22nd, 2007, 02:20 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default ch11 "Using XML and Ajax" example doesn't work

I cannot get the "Use XML and Ajax" Try It Out example to work. I downloaded the code from the website and used his code, but it doesn't work. When I click on the link that is supposed to update the <div> tag with new XML content, nothing happens. I've looked through the code several times for errors and cannot see anything. I compared the code with the code in the book and could see no difference. I tried the example in Internet Explorer and FireFox, but to no avail. I even added a DTD and made the document XHTML compliant, and whereas the page is valid XHTML, it doesn't work. The link doesn't do anything. Any assistance would be greatly appreciated.
  #2 (permalink)  
Old March 27th, 2007, 05:28 PM
Registered User
 
Join Date: Mar 2007
Location: Madison, WI, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yep, i'm just going through the same, spent on it ... well good 2 hours. Not working.

  #3 (permalink)  
Old March 27th, 2007, 06:13 PM
Registered User
 
Join Date: Mar 2007
Location: Madison, WI, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK, I found it:

the request's method fetching the content of XML document is '.responseXML' not '.responseXml'.

So, the first line of the 'handleData' function is:

var xmlDocument = request.responseXML;

Now it works.

 


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
XML XSLT AJAX and Database Advice Pls newbieboobers XSLT 2 March 20th, 2008 08:53 AM
Problem using mail() from Ch11 nodster Beginning PHP 2 May 14th, 2007 08:44 AM
code in CH11 not work in FireFox din BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 January 18th, 2006 09:21 PM



All times are GMT -4. The time now is 07:19 AM.


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