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 October 24th, 2009, 11:44 AM
Registered User
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 17 Figure 1-1

Hello All,

I just bought the book last night and I'm a bit confused about a reference on page 17. It says,
"In Figure 1-1, you see what is probably a pretty common scenario: You have a thumbnail, and you can click to see a bigger version of the thumbnail. This is the kind of thing that JavaScript works well for — giving you the bigger version in a separate pop-up window that doesn’t have any controls."

In my book Figure 1-1 is the "JQuery is not loaded" figure.
 
Old March 17th, 2010, 11:25 AM
Registered User
 
Join Date: Mar 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default I had the same problem

In addition, the download has does not have any figures for Chapter 1.

Please provide the cited figure.

thanks,
 
Old March 18th, 2010, 01:01 AM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

I took a quick look at the book and figure 1-1 is the "jquery not loaded" picture you mentioned. That does appear strange at first sight, as it does not match the words. However I took a look at the HTML and javascript that followed, I figured out what the author was talking - he was talking about the purpose of his code.

With that HTML page, if you click on the "Open Picture" link, a bigger version of the picture pops up. the event handler was not defined in the HTML, but added by the javascript.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type"
              content="application/xhtml+xml; charset=UTF-8"/>
        <title>Inline JavaScript</title>
        <link rel='stylesheet' type='text/css' href='style.css' />
        <script type='text/javascript' src='thumb.js'></script>
    </head>
    <body>
        <p>
            <img src='pumpkin.jpg' alt='Pumpkin' />
            <a href='pumpkin.jpg'>Open Picture</a>
        </p>
    </body>
</html>

Last edited by PeterPeiGuo; March 18th, 2010 at 01:05 AM..
 
Old March 18th, 2010, 06:38 AM
Registered User
 
Join Date: Mar 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default The point of our comments

The point was that the text did not match printed figures in the book. And the downloads which are supposed to be the full code for the examples and figures were incomplete. Typing in the thumbnails example does result in working code. But the result was not shown in the book as expected.
 
Old March 18th, 2010, 06:58 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

You are correct. The section of Chapter 1 from Page 8 - Programming Conventions was taken from a different book (a Wrox Blox on the base2 Javascript framework) and it appears that the images and figure count where not updated correctly.

I've attached the image that should have appeared on Page 17 below.

Sam
Attached Thumbnails
Click image for larger version

Name:	thumbnail.png
Views:	19
Size:	252.8 KB
ID:	79  
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
FYI: Chapter 8, Figure 8-5, page 240 peace95 BOOK: Beginning Oracle Application Express ISBN: 9780470388372 0 June 24th, 2009 02:29 AM
Page 105, Figure 3-2 LongJohnSilver BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 0 March 3rd, 2009 11:20 AM
MM_Text X-axis in Figure 14-17; Page 739 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 23rd, 2006 04:58 AM
Figure 6.5, Page 296 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 June 4th, 2006 02:32 AM





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