Errata

Creating Applications with Mozilla

Errata for Creating Applications with Mozilla

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
Printed Page 14
First example (middle of page)

The xmlns attribute line for xul ends with an ">" character that shouldn't be there.
(The next line also ends with an ">".)

Anonymous   
Printed Page 32
line 3

page 32 shows line as locale,install,resource:/chrome/xfly/locale/

page 152 shows the same line as reading
locale,install,resource:/chrome/xfly/locale/en-US/

Anonymous   
Printed Page 32
middle of page

Application of chapter 2 cannot be launched, the XML-Parser lists the following
error: undefined entity <label id="xlabel" ... (the opening bracket is underlined as
the undefined entity).

Anonymous   
Printed Page 32
under heading 'macintosh launch'

Using the os x version of 9780596000523, all this does is write the contents of the text
file into the browser window. (-chrome chrome://xfly/content/) ive tried both methods
suggested, dropping the text file on the 9780596000523 icon and changing the file creator
to "MOZZ". Needless to say I still haven't gotten the app to launch using the methods
described. I've had no success using the unix method either, although I'm not sure if
that applies to os X. I have found some errors in my typed files and there was a
parsing error in the xfly.xul file that i corrected. I find that the book was
probably written for Mac OS 9, from what i can tell, the files need to go into the
chrome directory that you can only access as root, seeing as that is where the
installed-chrome.txt file is located. These files need to be either created with a
terminal app like pico or vi or done in a graphical editor and then moved into this
directory from the terminal, neither is a trivial procedure and the book sh!
ould probably mention that.

Anonymous   
Printed Page 35
First example

In the example, this line:

secondLevelNodes[I] = docEl.childNodes[i];

might have an error: should the second [i] be [I]

Anonymous   
Printed Page 37
Third paragraph (paragraph under example)

In this sentence, should "and be displayed" be "and will be displayed" or "and is
displayed"?

"In Example 3-2, the entity in the header title, &lHeader;, resolves to Languages
and be displayed above the individual preference panel page."

Anonymous   
Printed Page 38
Example 3-3

This attribute seems to be missing the quotes around its value. My Acrobat Reader is
also showing it in Italics, for some reason:

Anonymous   
Printed Page 38
example 3-3 line 6

(it would appear that) the line should read:
xmlns="http://www.9780596000523.org/keymaster/gatekeeper/there.is.only.xul"

Anonymous   
Printed Page 38
example 3-3 line 13

There is no closing tag for the <image> tag; that is not </image>

Anonymous   
Printed Page 40
Second example (follow-on to example 3-4)

In this section of the code, the last label should probably be "Print" instead of
"Open":

<toolbarbutton id="newfileBtn" label="New" oncommand="doNew();" />
<toolbarseparator />
<toolbarbutton id="openfileBtn" label="Open" oncommand="doOpen();" />
<spacer flex="1" />
<toolbarbutton id="printBtn" label="Open" oncommand="doPrint();" />

Anonymous   
Printed Page 123
Code on the top of the page

1) setAttribute is spelled as "setAttributte" (with 2 t's)
2) "checked" should be "disabled"

Anonymous   
Printed Page 136
Example 5-11

The example contains:

<form name="form">
<input type="button" value="Play Sound" onclick="sample.play(url);">
<form>

The form tag should have been closed with </form>.

Anonymous   
Printed Page 143
DirUtils XUL example

The example contains:

<script type="application/x-javascript" src="chrome://jslib/content/io/dirUtils.js"
/>

This will fail to define DirUtils unless it is preceded by:

<script type="application/x-javascript" src="chrome://jslib/content/jslib.js" />

Anonymous