--- books/www/corrections.html 2003/01/20 16:37:40 1.68 +++ books/www/corrections.html 2003/03/13 17:17:50 1.87 @@ -1,9 +1,9 @@ - -

Corrections +

Corrections

This page contains a list of corrections to be made in the next printing of the book. If you have suggestions for changes or find errors in the text, @@ -14,29 +14,52 @@ href="mailto:reviewers@mozdev.org">revie

Note: All errors in the text and examples are shown in red and all corrections are shown in green. - +

Preface

- +

Chapter 1

- +

Chapter 2

- +

Chapter 3

+ + + +

Chapter 4 + +

    + +
  • On page 88: 'these are selectors are identical' has been changed to 'these selectors are +identical'

    + +
  • On page 109: 'The chome URL that the -moz-binding property points to' has been changed to 'The chrome URL that the -moz-binding property points to'

    +
- + +

Chapter 5

    @@ -97,7 +175,7 @@ changed to '<descrip
  • On page 135: Example 5-11 has been changed to -<html> + <head> <title>Sound Service Play Example</title> <script> @@ -114,16 +192,15 @@ changed to '<b class="fixed">&lt;descrip } </script> </head> - <body> + <form name="form"> <input type="button" value="Play Sound" onclick="play();"> </form> - </body> -</html> + -
  • -
  • On page 137: 'var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";' has been changed to +
  • 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"];'

  • @@ -133,7 +210,38 @@ load('chrome/jslib/jslib.js');
    '
    <
- + +

Chapter 6 + +

    + +
  • On page 145: Example 6-1 has been changed to
    + + +var myFile = "xFly.jar"; +initInstall( // initialize the installation + "Install xFly", // display name of installation + "xFly", // package name + "0.0.1", // version of install + 1); // flags - an optional argument, + // reserved for future use +f = getFolder("Chrome"); // specify a target directory +setPackageFolder(f); +addFile(myFile); // add software to the installation +registerChrome( + PACKAGE | DELAYED_CHROME, // chrome switch (i.e., type) + getFolder("Chrome","xFly.jar"), // destination of package + "content/xFly/"); // location of manifest in package +if (0 == getLastError( )) // if there have been no errors: + performInstall( ); // install "xfly.jar" +else // otherwise + cancelInstall( ); // cancel the installation. + + +
+ + +

Chapter 8

    @@ -213,29 +321,54 @@ install:: $(TARGETS)
- - -

Chapter 10 + +

Chapter 9

    -
  • On page 297: 'http://www.jslib.mozdev.org' has been changed -to 'http://jslib.mozdev.org'

  • -
+
  • On page 257: In Example 9-7 + + + <triple subject="?listitem" + predicate=" http://xfly.mozdev.org/fly-rdf#location" + object="?location"/> + + +has been changed to + + + <triple subject="?listitem" + predicate="fly-location#location" + object="?location"/> + + + - +

    Chapter 10

      -
    • On page 314: In Example 11-5 'var linetext = document.createTextNode(messageParagraphs[i]);' -has been changed to 'var linetext = document.createTextNode(lines[i]);'

      -
    • On page 314: In Example 11-6 'var linetext = document.createTextNode(messageParagraphs[i]);' -has been changed to 'var linetext = document.createTextNode(lines[i]);'

      +
    • On page 280: In Table 10-3 'Mostly used for retrieving, datasources, resources, and literals.' has been +changed to 'Mostly used for retrieving datasources, resources, and literals.'

      + +
    • On page 297: 'http://www.jslib.mozdev.org' has been changed to 'http://jslib.mozdev.org'

      + +
    + + + +

    Chapter 11 + +

      +
    • On page 314: In Example 11-5 and Example 11-6 'var linetext = +document.createTextNode(messageParagraphs[i]);' has been changed to 'var linetext = +document.createTextNode(lines[i]);'

    - +

    Chapter 12

      @@ -256,15 +389,17 @@ has been changed to (note the difference print ' ' % form['op3'].value +
    - +

    Appendix A

      @@ -274,6 +409,17 @@ class="fixed">http://www.mozilla.org/sou
    + + +

    Index + +

      + +
    • On page 437: 'Chimera, 2' has been changed to 'Camino, 2'

      + +
    + +