Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
6 Last paragraph |
",JavaScript" code often resides right there in the web page. |
Abder-Rahman | Jul 22, 2010 | |
10 United States |
On page 9 the sharpen your pencil activity the last one circled isn't the same as the answers given on page 10. |
Anonymous | Jul 11, 2013 | |
11 Last question |
<head> of |
Abder-Rahman | Jul 22, 2010 | |
15 Left side beside the phone speaker |
"Irate" beta |
Abder-Rahman | Jul 22, 2010 | |
24 Code |
document.getElementById("rockImg").src does not work correctly. |
Daniel Hirschlein | May 20, 2009 | |
26 Last onclick in the code snippet |
onclick:= |
Abder-Rahman | Jul 22, 2010 | |
Printed | Page 43 3rd Paragraph of left column (Variable's dialogue) |
In third line of paragraph, the word "to" is repeated: |
Anonymous | |
46 Last paragraph |
Instead of using number like 0.925,... |
Abder-Rahman | Jul 22, 2010 | |
Page 47 Right sidebar |
Chapter 1 page 14 Exercise Solution. Description of "value" listed as "the current value of the ZIP field" but the arrow is pointing to this.value in input id="bedrooms" div |
Anonymous | Apr 03, 2013 | |
Printed | Page 49 Large text blurb on right side of page |
the apostrophes need to be removed from the words "variable's" and "constant's" Apostrophes imply ownership; they do not make a word plural. |
Thomas Frank | Dec 28, 2010 |
54 End of the page (Magnets) |
You mention that "alarm_status" is an illegal Javascript name. But, isn't it legal? |
Abder-Rahman | Jul 22, 2010 | |
Printed | Page 59 middle of sample code |
the placeOrder function should take in the form object as a parameter in order for the form.submit() to |
Anonymous | |
Printed | Page 59,73 Definition of placeOrder function |
The placeOrder function takes an HTML form as an argument, but the placeOrder() declaration is missing the "form" should be: |
Robert Porter | Oct 20, 2009 |
Page 61 2nd paragraph |
Stray apostrophe: "but it's purpose is" should read "but its purpose is" |
Anonymous | Feb 06, 2012 | |
Page 62 The answer of 2nd question |
"The good news it that it isn?t terribly difficult to ..." should be "The good news is that it isn?t terribly difficult to ..." |
pcchee | Mar 25, 2009 | |
Printed | Page 71 first paragraph |
CURRENT: |
Anonymous | |
Printed | Page 71 second sentence |
The word "to" appears twice in the second sentence on page 71. |
dancro | May 22, 2010 |
Printed | Page 73 start of sample code |
The sample code on page 73 and 74 won't work because the form in "form.submit()" does not have |
Anonymous | |
Printed | Page 78 Code snippets between the arrows |
parseInt("18") and parseInt("3 dozen") should be parseDonuts("18") and parseDonuts("3 dozen") |
Kevin Sikes | Aug 29, 2009 |
Printed | Page 81 13th question of the puzzle |
"13. An piece of data with an on/off value would be stored as this data type" |
Cezar El-Nazli | Feb 04, 2009 |
Printed | Page 94 1st paragraph |
Code for setTimeout() points to the following URL: "http://www.headfirstlabs.com/books/hfsd/" instead of |
Anonymous | |
Printed | Page 96 top |
In the "Sharpen your pencil Solution" at the top of page 96, the comment about the millisecond |
Anonymous | |
Printed | Page 96 Sharpen your Pencil Solution top of the page |
The mistake is found on page 96 in the printed and the electronic downloaded versions. |
stosss | Mar 16, 2010 |
Printed | Page 96 Nederland |
In the Sharpen your pencil Solution the text "The five-minute delay is calculated in milliseconds by first converting to minutes (x60) and then to milliseconds (x1000)" should be "The five-minute delay is calculated in milliseconds by first converting to seconds (x60) and then to milliseconds (x1000)" |
Wim 't Jong | Aug 30, 2012 |
Printed | Page 102-105 102, whole page 103 bottom 104 top, 105 bottom |
The command to access the height of the rock simply does not work, and I have tried it in both google chrome and internet explorer. Rather, if you *remove* the object reference "style" you will do fine. |
Anonymous | Oct 15, 2012 |
Printed | Page 102-105 102 whole page 103 bottom, 104 top, 105 bottom |
on seeing the errata posted by another user here I find that my won errata posted here may be in error! |
Anonymous | Oct 15, 2012 |
Printed | Page 103 first 'arrow' annotation to illustration |
example shows the property to get the height of the client window to be clientWindowHeight - it should |
Anonymous | Jan 21, 2009 |
Printed | Page 104 Sample code |
I think the code for resizing the rock should work in XHTML compliant pages or it shouldn't be in the |
Anonymous | |
Printed | Page 104 Sharpen your pencil Solution |
I couldn't get the resizeRock code to work as it was written with either Safari or Chrome on Mac OS X. |
Anonymous | Dec 25, 2010 |
106 Top of page |
The question at the top of the page reads "Doesn't the Rock Image stay the same size?" The response as written, is "No, the rock size isn't dynamic." It should read, Yes, the Rock imsge does stay the same size because the size is not dynmamic. |
Anonymous | Apr 05, 2011 | |
Printed | Page 122 Code Way Up Close |
In the touchRock function, the operation of getting the userName first is missing. |
Anonymous | |
Printed | Page 122-123 122 Code way up close; 123 System behavior after coding |
I can't tell what happened when Bill Slaughter tried to |
Douglas Hemmick | Oct 15, 2012 |
Printed | Page 123 Cookie Example |
Can't get any of your examples to write the cookie. Cookies are enabled. |
Bill Slaughter | May 09, 2009 |
Printed | Page 125 Second word of the first answer. |
The way the sentence is written: |
Thomas Frank | Dec 29, 2010 |
Printed | Page 127-128 127 sharpen your pencil 128 syp soluion |
the variable userName is not declared in this code. |
Douglas Hemmick | Oct 15, 2012 |
Printed | Page 140 last sentence |
The last sentence ends with |
Anonymous | |
172 2nd paragraph under "Global Variable" |
"your" is mis-typed as "you're" |
Harry Spriggs | May 17, 2009 | |
Page 177 1st paragraph & side statement |
In paragraph: |
Anonymous | Dec 07, 2012 | |
Page 181 middle of sample code |
there is a semi-colon missing after the |
Roberta | Jan 08, 2011 | |
Page 182 middle of sample code |
there is a semi-colon missing after the |
Roberta | Jan 08, 2011 | |
Page 182 middle of the solution code |
there is a semi-colon missing after the |
Roberta | Jan 08, 2011 | |
Page 198 2nd paragraph |
"Numeric keys are known a indexes..." should be "Numeric keys are known as indices..." |
Anonymous | Dec 10, 2012 | |
Page 198 object method 'drive' in first code example |
the drive method in the fiat object shows 'alert.log'. I believe it is a misprint meant to say 'alert' or 'console.log'. |
Jake Wiesler | Mar 10, 2015 | |
Printed | Page 201 top of 3rd column |
I believe the word "inconventional" s/b "unconventional". |
Anonymous | |
Printed | Page 217 2nd paragraph |
The sentence |
Anonymous | |
Printed | Page 226 2nd to last sentence on page |
The sentence - |
Anonymous | |
Printed | Page 234 sharpen your pencil solution |
In the fourth line of the solution the variables i and j need to be switched, right now it says: |
Anonymous | |
Page 234 middle of the solution code |
Both alert statements have the "seat" and "row" variables swapped. |
Roberta | Jan 09, 2011 | |
Printed | Page 234 Sharpen your pencil Solution |
The alert messages have reversed the usage of variables i & j - should be like "Seat " + j + " in row " + i + " is available." |
Anonymous | Feb 15, 2011 |
Printed | Page 234 code box |
"The alert messages have reversed the usage of variables i & j - should be like "Seat " + j + " in row " + i + " is available."" |
Douglas Calhoun | Jul 03, 2011 |
Printed | Page 237 2nd paragraph |
Under the second large paragraph with the seat# functions, <img id="seat14" src=" alt="" /> is missing a quotation mark under src=. It should be <img id="seat14" src="" alt="" /> instead. |
Anonymous | |
Page 237 mandango.html source code |
Extra "<" exists in div tag. |
Yasuo Honda | Dec 05, 2010 | |
Printed | Page 261 Sidenote pointing to thermostat picture |
The sentence |
Anonymous | |
Printed | Page 266 Chapter 6 where there is an exercise solution |
If you turn to page 266 in Chapter 6 where there is an exercise solution. There is a part of the code that has been incorrectly crossed out. See below for what is in the text book: |
Anonymous | Jun 01, 2011 |
Printed | Page 273 Code example after first paragraph |
The code sample shows an alert, whose content is the value of the myShowSeatStatus() function. |
mycranium | Oct 29, 2011 |
Printed | Page 274 There are no Dumb Question. Answer #3 in the 2nd paragraph |
Original text |
Anonymous | |
Printed, PDF | Page 274 Exercise Solution |
Solution reads: |
Anonymous | Apr 16, 2011 |
Printed | Page 277 Each reference to showSeatStatus |
The seat referenced in the illustation is actually seat number 23. |
Bob Verhey | Apr 27, 2011 |
Page 279 First paragraph |
The sentence "The onlick event for seat images in Mandango" should say "onclick" not "onlick". The typo is funny, yet incorrect. |
Jim Tough | Apr 18, 2010 | |
Printed | Page 279 Sample code |
The illustration referes to seat 23, but the code example refers to seat 26. |
Bob Verhey | Apr 27, 2011 |
Page 282 Comment in "Sharpen your pencil" exercise |
The comment "The onlick property for each seat image is accessed to set onclick event handlers" should say "onclick" not "onlick". This typo gets funnier every time I see it! |
Jim Tough | Apr 18, 2010 | |
Printed | Page 295 Title at the top of the page |
the title |
Anonymous | |
Page 299 4th paragraph |
"you're name is onchange" should be "your name is onchange" |
Anonymous | Feb 20, 2012 | |
Printed | Page 300 highlighted code |
I'm not sure if you would consider this a mistake. I think that I read in the XHTML Head First |
Anonymous | |
Printed | Page 309 Second question on left |
Perhaps I am misunderstanding this, but on page 309 it says |
Anonymous | |
Printed | Page 314 top paragraph |
form["zipcode_help"],form["message_help"],....... are not working because we can only use form[] for selecting form fields. Here zipcode_help and message_help are span elements. So this generate error. You can use document.getElementById("zipcode_help") instead of that. |
Abhilash.M.A | May 10, 2010 |
Printed | Page 321 to the right of the only paragraph on the page |
there is a "/d/" which is right of the paragraph. It points towards "catch22", but if it's pointing to |
Anonymous | |
Printed | Page 324 What's My Purpose answer box |
The expression metacharacters all have lines drawn to their correct meanings, but the order of the 2nd and 6th answers have been reversed from the previous page. In other words, you've reversed the order of the sentences "The sub-pattern is optional..." and "The subpattern is required..." |
Frank Serkland | Sep 18, 2011 |
Page 329 top of page, first Answer |
About 2/3 through the answer, "then" is used when "than" should be used: |
Roberta | Jan 14, 2011 | |
Page 330 330page, Bullet Points--the last one! |
The last one Bullet Points: |
sufei | Mar 06, 2013 | |
Printed | Page 332 paragraph beginning "Howard's idea" |
"reign in" should be "rein in". |
Anonymous | Aug 04, 2010 |
Printed | Page 336 the examples below the 2nd paragraph |
You give 2 examples of character classes, one is /d[iu]g/ and the other is /$d[d.]/ . Shouldn't that |
Anonymous | |
Printed | Page 338 "Sharpen your pencil Solution", second answer |
On page 338, the answer key shows the answer is return |
Anonymous | |
Printed | Page 339 1 across |
The crossword clue asks for the JavaScript object that supports regular expressions and the answer is |
Anonymous | |
Page 347 First sentence of the page |
The first sentence is an incomplete sentence... |
Roberta | Jan 16, 2011 | |
Printed | Page 373 style tag found on the right side of the page |
font-color should just be color. font-color is not a valid css property. |
Anonymous | |
Page 379 Bullet points at the top of the page |
display:none and display:block are offered as an alternative to visible. But as the buttons are arranged in a single row, display:inline rather than display:block might be more appropriate. |
Anonymous | Jul 04, 2011 | |
Printed | Page 384 Second code sample |
I think the second code sample should actually be this: |
Anonymous | |
Printed | Page 384 2nd paragraph? |
I think this line on page 384 of H.F. java script: |
Anonymous | Oct 31, 2009 |
Printed | Page 429 JavaScript Magnets and Solution |
The code in both the problem and solution compare the length of the blog to the variable i. The code would not work since the variable is out of scope at this point, because it was declared as part of the for loop. |
Nathan Warner | Feb 09, 2010 |
Printed | Page 432 Second column first question |
charAt() function does not search for a single character as the answer suggests, but simply return the character at the given location. |
KJB | Aug 12, 2013 |
Printed | Page 432 Second column second question |
The answer suggests to pass the previous search index into the indexOf() method to continue searchnig through a string, but that's not correct. You should pass the previous search index + 1 otherwise the function will return the same index again. |
KJB | Aug 12, 2013 |
Printed | Page 433 Sharpen Your Pencil Solution at top of page, plus code samples |
The Sharpen Your Pencil solution and the later code samples on the page refer to "blog1" and "blog2". This is inconsistent with the code in the actual application, and I believe it is an error. Both of those should be in the blog array, so the numbers should be in square brackets - that is, they should be "blog[1]" and "blog[2]". |
mycranium | Oct 29, 2011 |
Printed | Page 434 in picture as well as code on bottom exercise |
The ceiling function doesn't work in either Firefox or IE. Is it in this version of the standard? |
Anonymous | |
Printed | Page 437 Second colum first answer |
The book suggests that "You can just think of the floor() method as always chopping off the decimal part", but that's only true for positive numbers. For negative non-integer ones the result is one less then the "chopped" value. |
KJB | Aug 12, 2013 |
Printed | Page 442 the code exerpt |
in the this.containsText function literal, the return function has one too many open parens |
Matthew | Sep 26, 2011 |
Printed | Page 449 First paragraph, first sentence |
"If it was only that easy" should be "If it were only that easy". |
Thomas Kennedy | Aug 05, 2010 |
Page 477 2nd paragraph |
Missing function arguments do not become null. Instead they are undefined. |
Anonymous | Jul 30, 2011 | |
Printed | Page 488 First sentence of last paragraph |
The sentence |
Anonymous | |
Printed | Page 497 1st paragraph |
I think that's not correct that 'undefined' and 'not defined' mean exactly the same thing. |
Anonymous | |
Printed | Page 560 Bullet Points |
The last Bullet Point appears to be truncated. All it says is "The send() method of the AjaxRequest object" .... |
DJPJ | Mar 24, 2009 |
Printed | Page 560 Bullet Points box |
Final bullet point is incomplete. "The send() method of the AjaxRequest object" |
Anonymous | Jun 23, 2009 |
Printed | Page 568 top |
Not sure if this has been mentioned(just joined forum). |
Jeffrey Yee | Nov 05, 2009 |
Printed | Page 569 First if-statement within handleRequest's code listing |
When running the example directly from my computer (i.e. opening youcube13.html directly in my browser), the page shows the initial body components and the image wait.gif and never proceeds. |
Daniel Roy | Mar 28, 2010 |