Errata

Building iPhone Apps with HTML, CSS, and JavaScript

Errata for Building iPhone Apps with HTML, CSS, and JavaScript

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
Page 2
Here are the cons of web app development: (first bullet)

You wrote:
"You cannot access the all cool hardware..."

I believe you meant to write:
"You cannot access all the cool hardware..."

Mark Savarese  Feb 13, 2010  Dec 01, 2010
Printed
Page 14...
Figures

Figures in chapter 2 don't exactly match the HTML in the listings.

Jonathan Stark
Jonathan Stark
 
Feb 04, 2010 
Printed
Page 15
Example 2-1 Sidebar DIV Image tag

the img tag is missing the end ">" after the src atribute.

Note from the Author or Editor:
Great catch! Thanks :)

Michael Blower  Jun 05, 2010  Dec 01, 2010
PDF
Page 24
Tip near top of page

The tip mentions downloading jqtouch to obtain images, which are said to be at themes/jqt/img (presumably within the archive download of jqtouch). However, as of now (Jan 2013), the current version of jqtouch (1.0-b4-rc) does not appear to have the images referenced in the code, specifically button.png (mentioned in the CSS just above the tip), and button_clicked.png mentioned on page 27 (PDF).
Could the author clarify which version of jqtouch contains these images?

Note from the Author or Editor:
You can find images for the various jQTouch themes in the github repo for the Android version of the book:

https://github.com/jonathanstark/android-book-example-files/tree/master/ch04/themes

Wil Stark  Jan 17, 2013 
Printed
Page 29-33
Advanced iPhone Styling (chapter 3)

The code described in this chapter and also available for download does not work properly in the iOS simulator, it seems to flicker as if it is displaying the text, but then returns to the original page.

Note from the Author or Editor:
Hi there -

Virtually all errata reports about chapter 3 stem from missing the following Caution callout (about halfway down the page, in the following links):

IPHONE BOOK:

http://ofps.oreilly.com/titles/9780596805784/ch03_id35816678.html

ANDROID BOOK:

http://ofps.oreilly.com/titles/9781449383268/ch03_id35816678.html

If that's not the issue, the other common problem with ch3 is that readers point their browser at index.html instead of the "traffic cop" page (android.html or iphone.html).

HTH,
j

Anonymous  Jan 18, 2011 
Printed, PDF
Page 32
example 3-3

Won't load page correctly - downloaded code from website yesterday, still getting a flicker and return to main page.

Please modify the code and let us know of the correction.

Note from the Author or Editor:
Hi there -

Virtually all errata reports about chapter 3 stem from missing the following caution callout (abou halfway down the page, on the following links):

IPHONE BOOK:

http://ofps.oreilly.com/titles/9780596805784/ch03_id35816678.html

ANDROID BOOK:

http://ofps.oreilly.com/titles/9781449383268/ch03_id35816678.html

If that's not the issue, the other common problem with ch3 is that readers point their browser at index.html instead of the "traffic cop" page (android.html or iphone.html).

HTH,
j

Anonymous  Jan 23, 2011 
Printed
Page 33
Chapter 3

The code downloaded does not work properly on the iphone, it seems to flicker as if it is displaying the text, but then returns to the original page. Tried on 2 different web servers. Need help for this urgently!

Note from the Author or Editor:
Hi there -

Virtually all errata reports about chapter 3 stem from missing the following caution callout (abou halfway down the page, on the following links):

IPHONE BOOK:

http://ofps.oreilly.com/titles/9780596805784/ch03_id35816678.html

ANDROID BOOK:

http://ofps.oreilly.com/titles/9781449383268/ch03_id35816678.html

If that's not the issue, the other common problem with ch3 is that readers point their browser at index.html instead of the "traffic cop" page (android.html or iphone.html).

HTH,
j

Jonathan Ellis  Jan 19, 2011 
Printed
Page 52
Example 4-1

Cannot see all the chevrons on the panels, but it appears only when panel is clicked and the panel color changed to green. Why?

Note from the Author or Editor:
Good catch!

This is a bug in the jQTouch theme - if you download the latest version of jQTouch from github, the chevrons will become visible:

https://github.com/senchalabs/jQTouch

Thanks - j

Anonymous  Sep 08, 2010 
Printed
Page 54
Example 4-2

The kilo.png file referenced in Example 4-2 is not included in the example file download package.

Jonathan Stark
Jonathan Stark
 
Feb 10, 2010 
Printed
Page 66
Middle of chart

"slideInSelector" should be changed to "slideSelector" in the property column.

Jonathan Stark
Jonathan Stark
 
Feb 17, 2010  Dec 01, 2010
Printed
Page 86
first paragraph

I believe the second sentence on the page should say:

"I did the same sort of thing earlier with the items on the Dates panel..."

instead of:

"I did the same sort of thing earlier with the items on the Date panel..."

Anonymous  May 16, 2010  Dec 01, 2010
Printed
Page 101
first main paragraph

In the paragraph below the note, the sentence:

"Now open index.html and add a reference manifest.php like so:"

should be:

"Now open index.html and add a reference to manifest.php like so:"

Anonymous  May 16, 2010  Dec 01, 2010
Printed
Page 115
After the 2nd paragraph under the "Intro to PhoneGap" section

Please add the following note after the paragraph that ends with "of the possible combinations.":

At the time of this writing, Nitobi was working on an easier way to build PhoneGap apps. Instead of modifying an Xcode project that they supply, they will provide an Xcode project template. In this future edition of PhoneGap, you'll choose File->New Project and choose the PhoneGap project template, then add in your HTML, CSS, and JavaScript as described in this chapter.

Brian Jepson
Brian Jepson
 
Feb 13, 2010  Dec 01, 2010
Printed
Page 117
Figure 7-1 caption

Please change "Download the latest version of PhoneGap from GitHub" to "Download version 0.8.0 of PhoneGap".

Brian Jepson
Brian Jepson
 
Feb 13, 2010  Dec 01, 2010
Printed
Page 137
1 description

In the description of item 1, the second sentence is written as:

Initialize the currentDate variable to the value stored in sessionStorage (i.e., the value entered by the user in the Settings panel), and the dailyBudget variable to the value stored in localStorage (ie., the date tapped on the Dates panel).

I believe that it should read as the first variable being dailyBudget and the second being currentDate.

Note from the Author or Editor:
Good catch! The i.e.s are backwards. Corrected passage:

Initialize the currentDate variable to the value stored in sessionStorage (i.e., the date tapped on the Dates panel), and the dailyBudget variable to the value stored in localStorage (i.e., the value entered by the user in the Settings panel).

Patrick Hawley  May 05, 2010  Dec 01, 2010