--- books/www/corrections.html 2003/02/10 17:43:32 1.74 +++ books/www/corrections.html 2003/03/14 15:45:05 1.96 @@ -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, @@ -12,30 +12,46 @@ section on the chapter pages, or send a href="mailto:reviewers@mozdev.org">reviewers@mozdev.org mailing list.

Note: All errors in the text and examples are shown in red and all corrections are shown in green. +class="fixed">blue. - +

Preface

- +

Chapter 1

- +

Chapter 2

- +

Chapter 3

- +

Chapter 4

    @@ -131,7 +167,7 @@ class="fixed">The chrome URL that the -m
- +

Chapter 5

    @@ -149,7 +185,6 @@ class="fixed">The chrome URL that the -m
  • On page 135: Example 5-11 has been changed to -<html> <head> <title>Sound Service Play Example</title> <script> @@ -166,16 +201,14 @@ class="fixed">The chrome URL that the -m } </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"];'

  • @@ -185,18 +218,49 @@ 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

- +

Chapter 10

- +

Chapter 11

- +

Chapter 12

- +

Appendix A

+ + +

Index + +

+ +