--- books/www/corrections.html 2002/12/14 14:29:22 1.60 +++ books/www/corrections.html 2003/01/20 16:40:44 1.70 @@ -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 @@ -87,12 +95,8 @@ id="printBtn" label="Print" oncommand="d
  • 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: - +<li>On page 135: Example 5-11 has been changed to +<xmp class="fixed"> <html> <head> <title>Sound Service Play Example</title> @@ -101,19 +105,28 @@ id="printBtn" label="Print" oncommand="d 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'); + 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> + </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');'

  • @@ -152,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

    @@ -210,6 +223,16 @@ to 'http://jslib.mozdev +
    +

    Chapter 11 + +

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

      +
    + +

    Chapter 12