--- books/www/corrections.html 2002/12/04 13:23:05 1.26 +++ books/www/corrections.html 2003/03/06 19:08:09 1.81 @@ -1,4 +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, @@ -6,83 +11,228 @@ feel free open a bug section on the chapter pages, or send a message to the reviewers@mozdev.org mailing list. +

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 + +

- + +

Chapter 5

- +
  • 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 135: Example 5-11 has been changed to + + + <head> + <title>Sound Service Play Example</title> + <script> + function play() { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); + sample = sample.QueryInterface(Components.interfaces.nsISound); + const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1"; + const SND_I_URL = "nsIURL"; + const SND_URL = new C.Constructor(SND_NETWORK_STD_CID, SND_I_URL); + var url = new SND_URL(); + url.spec = 'http://jslib.mozdev.org/test.wav'; + sample.play(url); + } + </script> + </head> + + <form name="form"> + <input type="button" value="Play Sound" onclick="play();"> + </form> + + + +
  • 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

    + +

    Chapter 9 + +

    - +

    Chapter 10

    - + +

    Chapter 11 + +

    + + +

    Chapter 12

    - +

    Appendix A

    @@ -160,3 +365,17 @@ changed to 'http://www.mozilla.org/sourc + + + + + + +

    Index + +