--- books/www/corrections.html 2002/12/10 16:22:55 1.39 +++ books/www/corrections.html 2003/01/23 18:40:19 1.71 @@ -1,3 +1,8 @@ + +

Corrections

This page contains a list of corrections to be made in the next printing of @@ -6,14 +11,16 @@ feel free open a bug section on the chapter pages, or send a message to the reviewers@mozdev.org mailing list. +

Note: All errors in the text and examples are shown in red and all corrections are shown in green.

Preface

@@ -23,8 +30,8 @@ to 'http://www.oreilly.com/catalog/mozil @@ -34,18 +41,23 @@ changed to 'applications built using XPF @@ -55,9 +67,45 @@ to 'CenterWindowOnScreen( ) function'
-
  • On page 40: '<toolbarbutton id="printBtn" label="Open" -oncommand="doPrint( );" />' has been changed to '<toolbarbutton -id="printBtn" label="Print" oncommand="doPrint( );" >'

    +
  • On page 34: 'We've packed a lot information in this chapter and it be a useful reference' has been changed +to 'We've packed a lot of information in this chapter and it will be a useful reference'

    + +
  • On page 35: 'secondLevelNodes[I] = docEl.childNodes[i];' has been changed to 'secondLevelNodes[I] = docEl.childNodes[I];'

    + +
  • On page 40: '<toolbarbutton id="printBtn" label="Open" +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>'

    + +
  • On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to seperate values) + + +<?xml version="1.0"?> +<window id="hello-goodbye" + title="Hello Goodbye" + xmlns:html="http://www.w3.org/1999/xhtml" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + style="min-width:100px;min-height:100px;background-color:white;"> + <broadcasterset id="broadcasterset"> + <broadcaster id="cmd_hello" oncommand="alert('Hello There!');"/> + </broadcasterset> + <keyset id="keyset"> + <key id="key_h" key="H" observes="cmd_hello" modifiers="accel,shift" /> + <key id="key_g" key="G" command="cmd_goodbye" modifiers="accel,shift" /> + </keyset> + <commandset id="commandset"> + <command id="cmd_goodbye" oncommand="alert('Goodbye!');" /> + </commandset> + <spacer flex="1"/> + <label value="hello/goodbye"/> + <textbox value="type ctl+shft+h"/> + <textbox value="type ctl+shft+g"/> + <spacer flex="1"/> +</window> + @@ -65,54 +113,80 @@ id="printBtn" label="Print" oncommand="d

    Chapter 5

    Chapter 8

    @@ -178,8 +248,18 @@ install:: $(TARGETS)

    Chapter 10

    + + +
    +

    Chapter 11 + +

    @@ -188,22 +268,27 @@ to 'http://jslib.mozdev.org'

  • -
  • On page 339: A new 'Certificate Authorities and Digital -Signatures' section is being written with drafts available on http://certs.mozdev.org

    -
  • +
  • On page 336: In Example 12-6 -
  • (p 336) Use of backtics instead of single quote. - +<xmp class="broken"> print ` <checkbox label="%s" />' % form['op1'].value print ` <checkbox label="%s" />' % form['op2'].value print ` <checkbox label="%s" />' % form['op3'].value -Should be: - print ' <checkbox label="%s" />' % form['op1'].value - print ' <checkbox label="%s" />' % form['op2'].value + + +has been changed to (note the difference in indentation and in using a single quote versus a backtick) + + + print ' <checkbox label="%s" />' % form['op1'].value + print ' <checkbox label="%s" />' % form['op2'].value print ' <checkbox label="%s" />' % form['op3'].value + +
  • On page 339: A new 'Certificate Authorities and Digital +Signatures' section is being written with drafts available on http://certs.mozdev.org

  • + @@ -212,8 +297,8 @@ Should be: