Errata

Palm webOS: Rough Cuts Version

Errata for Palm webOS: Rough Cuts Version

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.

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
PDF Page 34
Code below 2nd paragraph

Not really an error, I guess. But in current SDK pointing to mojo should be:

<script src="/usr/palm/frameworks/mojo/mojo.js" type="text/javascript" x-mojo-version="1"></script>

Instead of what's in the book:

<script src="/usr/lib/mojo/framework/mojo.js" type="text/javascript"
x-mojo-version="1"></script>

Not "lib" anymore, now should be palm. Otherwise the code won't run.

(Love the book, way better than the competition's ;-) ).

Anonymous  Jun 01, 2010 
Printed Page 66
html code for storyRowTemplate

One should use #{summary} as template name in storyRowTemplate.html instead of #{text} because the processFeed function from Appendix D removes all unwanted html code from the text property and writes the result to the summary property.

Matthias Carell  Mar 16, 2010 
Printed Page 67
code snippet

As a result from this line of code:

Mojo.Log.info("StoryList feed = ", Object.toJSON(this.feed));

I got this (even from the news sample from the sdk 1.3.5.368):

[20100310-12:42:21.303577] info: null

I would like to know what the intended output should be.

Matthias Carell  Mar 10, 2010 
Printed Page 71
code snippet after 1st paragraph

Shouldn't be set News.feedListUpdateInProgress to false in updateFeedFailure (like it is set in updateFeedSuccess)?

Matthias Carell  Mar 26, 2010 
Printed Page 90
3rd paragraph: Since we're demonstrating...

At page 90 you refer to Appendix D for the this.checkIt function (correct name this.checkFeed, as mentioned before).
I would like to suggest that you may also mention the checkSuccess(transport) and checkFailure(transport) functions.
But what I'm asking myself (with the MVC in mind), shouldn't these functions (checkFeed and checkFailure) be part of the feed.js model?

Matthias Carell  Mar 17, 2010 
Printed Page 104
function checkSuccess

If I do not add this.okButton.mojo.deactivate();
before this.widget.mojo.close(); I get this error:
error: EXCEPTION [exception during animation], (TypeError): "Cannot call method 'animate' of undefined"

For me it seem you can't close a widget while animation of any element in this widget is still active.

Matthias Carell  Mar 23, 2010 
Printed Page 124
last paragraph before code snippet

In the book the required changes to the css file are mentioned. Wouldn't it be better if the required changes are listed or at least a reference to the appendix is made?

Matthias Carell  Mar 29, 2010 
Printed Page 126
1st paragraph after javascript code

The AddDialog assistant does not have a checkIt and a checkOk function. Instead you should mention, that the AddDialog.prototype.setup function have to be changed to recognize the new parameters for the 'edit feed' functionality.

Matthias Carell  Mar 29, 2010 
Printed Page 147
code snippet after 1st paragraph

Your comment in code says: 'If timer is active, restart with new value'.

It seems to me that this code just stops the timer.

Matthias Carell  Apr 09, 2010