--- books/www/corrections.html 2002/12/11 17:23:36 1.58 +++ books/www/corrections.html 2003/01/20 16:37:40 1.68 @@ -49,7 +49,9 @@ xmlns="http://www.mozilla.org/keymaster/ />' has been changed to '<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">'

-
  • On page 14: Removed an extra '>' from example code

    +
  • On page 14: In first code sample from Windows features section, 'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">' has been changed to 'xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"'

  • On page 17: 'selecting File > Open File > from' has been changed to 'selecting File > Open File from'

    @@ -65,10 +67,16 @@ to 'CenterWindowOnScree @@ -79,16 +87,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');'

    +
  • @@ -124,8 +165,8 @@ has been changed to type); -
  • On page 222: In Example 8-4 one of the duplicate 'dump(" ***** Registering: Simple JS component! ****\n");' lines -has been removed

    +
  • On page 222: In Example 8-4 one of the duplicate 'dump(" ***** Registering: Simple JS component! +****\n");' lines has been removed

  • On page 223: In Example 8-4 one of the duplicate 'if (outer != null)' lines has been removed

    @@ -182,6 +223,18 @@ to 'http://jslib.mozdev +
    +

    Chapter 10 + +

      +
    • On page 314: In Example 11-5 'var linetext = document.createTextNode(messageParagraphs[i]);' +has been changed to 'var linetext = document.createTextNode(lines[i]);'

      + +
    • On page 314: In Example 11-6 'var linetext = document.createTextNode(messageParagraphs[i]);' +has been changed to 'var linetext = document.createTextNode(lines[i]);'

      +
    + +

    Chapter 12