Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Beginning Ajax ISBN: 978-0-470-10675-4
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Ajax ISBN: 978-0-470-10675-4
This is the forum to discuss the Wrox book Beginning Ajax by Chris Ullman, Lucinda Dykes; ISBN: 9780470106754
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ajax ISBN: 978-0-470-10675-4 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 March 27th, 2007, 01:04 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default JavaScript example in FireFox

Regarding the code example in Chapter 1: I have tried it in IE and FireFox but the later displays a blank screen. I have made certain that JavaScript is enabled and have checked the Advanced JavaScript options but all variations on these settings give the same blank screen.

Any suggestions?



Reply With Quote
  #2 (permalink)  
Old March 28th, 2007, 09:33 AM
Wrox Author
 
Join Date: Jun 2004
Location: Liskeard, Cornwall, United Kingdom.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
   It should work - all my examples were tested in Firefox and IE. Can you tell me whether you typed in the code from the book pages, or whether you're using the code downloaded from the site. There shouldn't be a difference between the two but occasionally there is. Then we can take it from there.

Chris Ullman

Chris Ullman
Programmer/Technical Author
http://www.cuasp.co.uk
Reply With Quote
  #3 (permalink)  
Old April 2nd, 2007, 09:52 AM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chris,

The code in the book is fine.

I installed IIS locally and the book examples (which I had downloaded) work in both IE and FireFox. I had originally up-loaded the Chapter 1 example to my web site. Code on my site still does not work on FireFox but I will now look to my Service Provider rather than the code.

Love the book. I am trying to come up to speed on JavaScript and Ajax with a bit of PHP on the side in order to take on a new set of projects were time is of some concern, so I appreciate a good set of reference manuals.

Thank you
Lys Mykyta

Reply With Quote
  #4 (permalink)  
Old April 3rd, 2007, 08:57 AM
Wrox Author
 
Join Date: Jun 2004
Location: Liskeard, Cornwall, United Kingdom.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Lys,

Glad to hear you are enjoying the book.

If it works on IE, then I'm not 100% sure that the fault lies with the service provider, although it's quite possible. My advice would be to jump ahead to chapter 6 - round page 162, and put some debugging alerts in, particular in the callback function getData and see what codes you are getting returned from Firefox. This won't hurt your understanding of the book.

Check that you are getting 200 from the status and 4 from the readystate and then go and query responseXML. If this is blank then try responseText. It could be that the server is returning the XML in a way that Firefox doesn't like, but it could be a problem with the setup, that IE is more tolerant of.

I sometimes wonder if the debug chapter shouldn't have been chapter 1, as Ajax apps while really useful can be quite finicky at times, and you've no idea how long I spent debugging some of the examples in the book. :-)

Chris



Chris Ullman
Programmer/Technical Author
http://www.cuasp.co.uk
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
Firefox vs. IE - Javascript problem VerbatimBOT ASP.NET 2.0 Professional 2 September 25th, 2008 03:28 AM
JavaScript textarea problem with FireFox dparsons Javascript How-To 0 May 19th, 2008 08:34 PM
Javascript - Firefox is not supporting lakshmi252002 General .NET 0 April 17th, 2007 12:14 AM
Firefox javascript error akkad Ajax 2 November 27th, 2006 09:57 AM
How To Close firefox Window through javascript jitendersingal ASP.NET 1.0 and 1.1 Basics 1 February 13th, 2006 06:36 PM



All times are GMT -4. The time now is 09:55 PM.


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