--- books/www/corrections.html 2002/12/10 16:22:55 1.39
+++ books/www/corrections.html 2002/12/11 16:40:13 1.54
@@ -1,3 +1,8 @@
+
+
Corrections
This page contains a list of corrections to be made in the next printing of
@@ -12,8 +17,8 @@ href="mailto:reviewers@mozdev.org">revie
-- On page xiv: 'http://www.oreilly.com/mozilla/' has been changed
-to 'http://www.oreilly.com/catalog/mozilla/'
+ - On page xiv: 'http://www.oreilly.com/mozilla/' has been changed
+to 'http://www.oreilly.com/catalog/mozilla/'
@@ -23,8 +28,8 @@ to 'http://www.oreilly.com/catalog/mozil
-- On page 7: 'applications web built using XPFE' has been
-changed to 'applications built using XPFE'
+ - On page 7: 'applications web built using XPFE' has been
+changed to 'applications built using XPFE'
@@ -34,18 +39,18 @@ changed to 'applications built using XPF
-- On page 12: '<window
+
- On page 12: '<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
-/>' has been changed to '<window
-xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">'
+/>' has been changed to '<window
+xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">'
- - On page 14: Removed an extra '>' from example code
+ - On page 14: Removed an extra '>' from example code
- - On page 17: 'selecting File > Open File > from' has been
-changed to 'selecting File > Open File from'
+ - On page 17: 'selecting File > Open File > from' has been
+changed to 'selecting File > Open File from'
- - On page 20: 'CenterWindoOnScreen( ) function' has been changed
-to 'CenterWindowOnScreen( ) function'
+ - On page 20: 'CenterWindoOnScreen( ) function' has been changed
+to 'CenterWindowOnScreen( ) function'
@@ -55,9 +60,9 @@ to 'CenterWindowOnScreen( ) function'
-On page 40: '<toolbarbutton id="printBtn" label="Open"
-oncommand="doPrint( );" />' has been changed to '<toolbarbutton
-id="printBtn" label="Print" oncommand="doPrint( );" >'
+On page 40: '<toolbarbutton id="printBtn" label="Open"
+oncommand="doPrint( );" />' has been changed to '<toolbarbutton
+id="printBtn" label="Print" oncommand="doPrint( );" >'
@@ -65,54 +70,47 @@ id="printBtn" label="Print" oncommand="d
Chapter 5
- - (p 113)
-
- Changed footnote link to
- http://developer.netscape.com/docs/manuals/index.html?content=javascript.html
-
-
- - (p 120)
-
- dump(l+'\n');
- has been changed to
- dump(len+'\n');
-
-
- - (p 137)
-
- var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"; // create an object from the nsILDAPConnection interface;
- has been changed to
- var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"]; // create an object from the nsILDAPConnection interface;
-
-
- - (p 140)
-
- Changed load(`chrome/jslib/jslib.js');
- To load('chrome/jslib/jslib.js');
-
-
+
+- On page 113: Javascript 1.5 reference link in footnote has been changed from
+'http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html' to
+'http://developer.netscape.com/docs/manuals/index.html?content=javascript.html'
+
+ - On page 120: '</script.' has been changed to '</script>'
+
+ - On page 120: 'dump(l+'\n');' has been changed to 'dump(len+'\n');'
+
+ - On page 137: 'var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";' has been changed to
+'var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];'
+
+ - On page 140: 'js> load(`chrome/jslib/jslib.js');' has been changed to 'js>
+load('chrome/jslib/jslib.js');'
+
Chapter 8
-- (p 211) Root Interfaces
- Changed 2nd sentence QueryInterace to QueryInterface.
-
-- (p 222) Example 8-4
-
mName: "a default value"
should be mName: "a default value",
-
-- (p 222) Example 8-4
-
+
+
- On page 211: In 2nd sentence of paragraph 'QueryInterace' has been changed to 'QueryInterface'
+
+ - On page 222: In Example 8-4 'mName: "a default value"' has been changed to 'mName: "a default
+value",'
+
+ - On page 222: In Example 8-4
+
+
this.myCID,
"My JS Component",
this.myProgID, fileSpec,
location, true, true,
type);
- Should be
-
+
+has been changed to
+
+
compMgr.registerComponentWithType(
this.myCID,
"My JS Component",
@@ -120,18 +118,15 @@ id="printBtn" label="Print" oncommand="d
location, true, true,
type);
-
-- (p 222, p 223) Example 8-4
-
- Removed double lines
- dump(" ***** Registering: Simple JS component! ****\n");
- and
- if (outer != null)
-
-
-- (p 239) Example 8-15 has been changed to
-
+ - On page 222: In Example 8-4 one of the duplicate 'dump(" ***** Registering: Simple JS component! ****\n");' lines
+has been removed
+
+ - On page 223: In Example 8-4 one of the duplicate 'if (outer != null)' lines has been removed
+
+ - On page 239: Example 8-15 has been changed to
+
+
DEPTH = ../../..
topsrcdir = ../../..
srcdir = .
@@ -169,7 +164,6 @@ EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS
install:: $(TARGETS)
-
@@ -178,8 +172,8 @@ install:: $(TARGETS)
Chapter 10
-- On page 297: 'http://www.jslib.mozdev.org' has been changed
-to 'http://jslib.mozdev.org'
+- On page 297: 'http://www.jslib.mozdev.org' has been changed
+to 'http://jslib.mozdev.org'
@@ -188,22 +182,27 @@ to 'http://jslib.mozdev.org'
-On page 339: A new 'Certificate Authorities and Digital
-Signatures' section is being written with drafts available on http://certs.mozdev.org
-
+On page 336: In Example 12-6
-(p 336) Use of backtics instead of single quote.
-
+
print ` ' % form['op1'].value
print ` ' % form['op2'].value
print ` ' % form['op3'].value
-Should be:
- print ' ' % form['op1'].value
- print ' ' % form['op2'].value
+
+
+has been changed to (note the difference in indentation and in using a single quote versus a backtick)
+
+' % form['op1'].value
+ print ' ' % form['op2'].value
print ' ' % form['op3'].value
+
+On page 339: A new 'Certificate Authorities and Digital
+Signatures' section is being written with drafts available on http://certs.mozdev.org
+
@@ -212,8 +211,8 @@ Should be:
-- On page 365: 'http://www.mozilla.org/source.tml' has been
-changed to 'http://www.mozilla.org/source.html'
+ - On page 365: 'http://www.mozilla.org/source.tml' has been changed to 'http://www.mozilla.org/source.html'