Wrox Programmer Forums
|
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 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 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?
 
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?









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