Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
zibrnp

Chapter 11 - Quote Example Problem With Php Pulling External Data

Recommended Posts

Hello,

I have been working on a "quote" example, Chapter 11 page 468.
I am using MAMP as local server environment.

The example from the book was not working with "quote.php" file so I run the file via local server and blank page was returned.
Any suggestion in regards to what I am doing wrong please?

I have created "quote.json" file with exact content google's URL returns and that is working.

Thanks, T
 

Share this post


Link to post
Share on other sites

This is hard to debug remotely. I'd start by confirming that the Ajax script works when accessing it directly. And I'd make sure there are no errors in the JavaScript console.

Share this post


Link to post
Share on other sites

Most browsers these days have a network panel where you can view all outgoing requests and incoming responses. I personally like the one in Chrome. Please let us know what the network panel in your browser is showing, and we can try to debug from there.

Thanks.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...