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 |
ePub |
Page I.I
Code sample |
The code sample in 1.1 will not run as presented. The function:
var intervalID = window.setInterval(function() {
if (PhoneGap.available) {
onDeviceReady();
}
}, 500);
is at the root of the problem. A later function:
function onDeviceReady() {
window.clearInterval(intervalID);
// set to true
isPhoneGapReady = true;
alert("Devise is now ready");
}
has intervalID as a param but it is out of scope. I fixed it by:
var intervalID;
(up by the var isPhoneGapReady = false;) declaration.
now the call looks like:
intervalID = = window.setInterval(function() {......}
and the code works. Good book.
|
Tom |
Sep 28, 2012 |
Other Digital Version |
1.18
code sample in section 1.18 |
The file writing and reading recipes do not work as described in the book.
The code "fileWriter = fileWriter;" does nothing, causing the data to never save.
File functions require permissions in android manifest file which are never discussed. They also require entries in plugins.xml file. Those entries, and the entire xml file are never discussed.
|
Anonymous |
Aug 24, 2012 |
PDF |
Page 20
all the recipes |
The code is not working.
Is it possible to received by mail or download the correct code ?
Alain Dumont
|
Alain Dumont |
Apr 12, 2012 |