--- books/www/corrections.html 2002/12/14 14:29:22 1.60 +++ books/www/corrections.html 2003/01/02 21:25:31 1.65 @@ -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'

    @@ -69,6 +71,9 @@ to 'CenterWindowOnScree oncommand="doPrint( );" />' has been changed to '<toolbarbutton id="printBtn" label="Print" oncommand="doPrint( );" >'

    +
  • On page 51: '<decription>The mozdev.org site [...] your own development project</decription>' has been +changed to '<description>The mozdev.org site [...] your own development project</description>'

    + @@ -87,12 +92,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 +102,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');'