Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning JavaScript and CSS Development with jQuery
This is the forum to discuss the Wrox book Beginning JavaScript and CSS Development with jQuery by Richard York; ISBN: 9780470227794
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript and CSS Development with jQuery 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 April 9th, 2010, 03:37 PM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example 7-1

Example 7-1 worked straight in the download as one might expect. I like to put them in my IDE and hand type at least part of the code, as it serves the same function as practising the piano just making the syntax automatic.

Well I had a hell of a time with the second button, the one that invokes the getJSON function. I put the question on stackoverflow, and the answer that solved the problem was to put double quotes around both keys and values in the json file. The original file had no quotes around the keys and single quotes around the values and I know of no tool that would help me identify that as the source of the problem.

So what I want to know is why does the example (which according to them is WRONG) work as it comes, and what did I do to it to make it break, requiring stricter adherence to standards?
Reply With Quote
  #2 (permalink)  
Old July 28th, 2010, 05:01 PM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Double Quotes work!

Hey man - thanks for posting that was starting to drive me crazy! Still Not sure why the downladed .json file works without double quotes. Anyone?
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




All times are GMT -4. The time now is 03:59 PM.


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