--- books/www/corrections.html 2002/12/11 17:23:36 1.58 +++ books/www/corrections.html 2002/12/17 13:09:08 1.62 @@ -79,16 +79,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');'

    +