Wrox Programmer Forums
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 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 November 26th, 2009, 11: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?

Old November 27th, 2009, 01:16 AM
jmcpeak's Avatar
Wrox Author
Join Date: Nov 2005
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)) {
Old November 27th, 2009, 10: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?


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 03:25 AM
HELP NEEDED Yasho VB.NET 2002/2003 Basics 1 January 29th, 2007 08:13 AM
Help Needed cyberabhi Classic ASP Professional 1 March 21st, 2006 06:33 PM
Help Needed raj_plkd Javascript How-To 3 August 25th, 2005 05:52 AM

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