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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

Hi

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:
Code:
[Thu Nov 26 19:31:56 2009] [error] [client 127.0.0.1] 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:
Code:
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:
Code:
extension_dir="D:\D_ProgramFiles\php\ext"
[PHP_MYSQL]
extension=php_mysql.dll
My path env variable starts with the following:
Code:
D:\D_ProgramFiles\php\;
Does anyone have any ideas how to go about resolving this issue?

Thanks,
Steve
Reply With Quote
  #2 (permalink)  
Old November 27th, 2009, 01: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
Default

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:

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

Jeremy,

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?

Regards,
Steve
Reply With Quote
Reply


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



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


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