Errata

Head First Mobile Web

Errata for Head First Mobile Web

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed, PDF, , Other Digital Version
Page xxxi
5th paragraph

Brian LeRoux's name is incorrectly spelled as Bryan on the page.

Jason Grigsby
Jason Grigsby
 
Jan 11, 2012  Feb 03, 2012
PDF
Page 32
Center, left

On page 32 in the image displaying the layout twice, the context div of the images is labeled has having a class called div.main but the text refers to it as a div with an id of div#main.

I believe it is intended to be an id of div#main as it is in the downloadable examples.



Note from the Author or Editor:
This is a typo resulting from some CSS changes late in the production process. The references on page 32 that read div.main should be changed to read div#main.

Andrew J Leer  Feb 24, 2012 
Printed
Page 240
Do this!

In the file extras/tartans.html, the opening <a> tag for the back button has a slash that shouldn't be there. Also, the file tartans/tartans.css file as extracted from the chapter6.zip file starts with keith instead of abercrombie. I had to get the tartans.css file from the download site to get a clean copy.

Note from the Author or Editor:
This errata has been resolved per
https://github.com/lyzadanger/HFMWChapter6/commit/b720577d6bbbe512b5db49c8edac815ccbee0509

Error is in code, not in printed matter, and is fixed and pushed.

John Morris  Feb 04, 2012 
Printed
Page 251
bottom of page

the "Bring forrit the tartan!" tagline shows up aligned on the left, instead of centered. Is there an error in the code?

Note from the Author or Editor:
No print changes needed. Issues were in source/example code, which has been fixed and updated on the book's site (hf-mw.com).

John Morris  Feb 03, 2012 
Printed
Page 308
bottom of page

When searching by state, an error message is displayed stating that 'distance_formatted' is undefined. To fix this, I added the following at line 60 of event_search.inc:
$event['distance_formatted'] = "";

Note from the Author or Editor:
This is resolved in the source code. No print changes required.

John Morris  Feb 08, 2012 
Printed
Page 337
code

The code on pages 337 and 338 use the 'var' keyword for the functions that are defined. However the code in the extras/scripts files does not use the keyword. Does the difference in scope matter?

Note from the Author or Editor:
On page 340: There is a large block of JavaScript code in the middle of the page. There are two lines that are slightly amiss:

refreshTartans = function() {

should read

var refreshTartans = function() {

Likewise,

tartanFound = function(event) {

should read

var tartanFound = function(event) {

John Morris  Feb 10, 2012