--- books/www/corrections.html 2002/12/11 16:40:13 1.54 +++ books/www/corrections.html 2003/01/02 21:25:31 1.65 @@ -11,6 +11,8 @@ 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 @@ -39,12 +41,17 @@ changed to 'application

@@ -74,16 +84,49 @@ id="printBtn" label="Print" oncommand="d
  • 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 + +<html> + <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> + <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 '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');'

    +
  • @@ -192,7 +235,7 @@ to 'http://jslib.mozdev has been changed to (note the difference in indentation and in using a single quote versus a backtick) - print ' <checkbox label="%s" />' % form['op1'].value print ' <checkbox label="%s" />' % form['op2'].value print ' <checkbox label="%s" />' % form['op3'].value