Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6
This is the forum to discuss the Wrox book Professional Ajax, 2nd Edition by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780470109496
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-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 Display Modes
  #1 (permalink)  
Old November 26th, 2009, 10:00 PM
Registered User
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help Needed With HiddenFrameGetExample


Wrox -- thanks for providing this online resource.

I tried using the HiddenFrameGetExample as explained in chapter 2, "Ajax Basics."

I've installed Apache HTTP server, PHP, and MySql. I created the Customers table and populated it with data shown in the book. Apache and MySql are both running.

I enter 1 in the field and click the button, but no data gets displayed on the html page. My Apache error log shows the following:
[Thu Nov 26 19:31:56 2009] [error] [client] PHP Parse error:  parse error in D:\\D_ProgramFiles\\Apache\\http_server_2.2\\htdocs\\GetCustomerData.php on line 12, referer: http://localhost/HiddenFrameGetExample.htm
Line 12 contains the following:
if (is_numeric($sID) {
As part of debugging, I modified the frameset definition so the hidden frame is visible. The "hidden" frame displays the HTTP 500 error "The page cannot be displayed."

I've tested my Apache installation with a simple
"hello world" PHP script, which works so Apache is aware of PHP.

My php.ini file includes the following:
My path env variable starts with the following:
Does anyone have any ideas how to go about resolving this issue?

Reply With Quote
  #2 (permalink)  
Old November 27th, 2009, 12:16 AM
jmcpeak's Avatar
Wrox Author
Points: 467, Level: 7
Points: 467, Level: 7 Points: 467, Level: 7 Points: 467, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2005
Location: , Texas, USA.
Posts: 87
Thanks: 0
Thanked 18 Times in 17 Posts

Howdy, EvestM!

It looks like the error is caused by the lack of a closing parenthesis in the if statement's condition. It should be:

if (is_numeric($sID)) {
Reply With Quote
  #3 (permalink)  
Old November 27th, 2009, 09:57 AM
Registered User
Join Date: Nov 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts


Thanks -- I made the change and the query works fine.

Now I can get on with using your great book and learning Ajax.

Just wondering -- I downloaded the code from Nicholas Zakas's web site. Do you know the best way of notifying Nicholas that the code contains an error?

Reply With Quote

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
Help Needed thew00tman Beginning VB 6 6 April 6th, 2007 03:56 PM
Help needed fastmike Pro PHP 1 February 15th, 2007 02:25 AM
HELP NEEDED Yasho VB.NET 2002/2003 Basics 1 January 29th, 2007 07:13 AM
Help Needed cyberabhi Classic ASP Professional 1 March 21st, 2006 05:33 PM
Help Needed raj_plkd Javascript How-To 3 August 25th, 2005 05:52 AM

All times are GMT -4. The time now is 06:46 AM.

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