--- books/www/corrections.html 2002/12/11 17:23:36 1.58 +++ books/www/corrections.html 2002/12/14 14:28:30 1.59 @@ -79,16 +79,45 @@ 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 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 135: Example 5-11 needs to be: + +<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); + sample.playSystemSound('resource:/res/samples/test.wav'); + } + </script> + </head> + <body> + <form name="form"> + <input type="button" value="Play Sound" onclick="play();"> + </form> + </body> +</html> + +

    +
  • On page 140: 'js> load(`chrome/jslib/jslib.js');' has been changed to 'js> load('chrome/jslib/jslib.js');'

    +