Annotation of books/www/corrections.html, revision 1.71

1.52      petejc      1: <style>
                      2:   .broken { color: red; }
                      3:   .fixed { color: green; }
                      4: </style>
                      5: 
1.1       david       6: <p><b>Corrections</b>
                      7: 
1.21      david       8: <p>This page contains a list of corrections to be made in the next printing of
1.19      david       9: the book.  If you have suggestions for changes or find errors in the text,
1.22      david      10: feel free open a <a href="bugs.html">bug</a> with a report of the problem, post a message in the User Notes 
                     11: section on the chapter pages, or send a message to the <a
1.19      david      12: href="mailto:reviewers@mozdev.org">reviewers@mozdev.org</a> mailing list.
1.1       david      13: 
1.56      david      14: <p><b>Note:</b> All errors in the text and examples are shown in <b class="broken">red</b> and all corrections are shown in <b
                     15: class="fixed">green</b>.
1.20      david      16: 
                     17: <a name="preface">
                     18: <p><b>Preface</b>
                     19: 
1.1       david      20: <ul>
1.18      david      21: 
1.51      petejc     22: <li>On page xiv: '<b class="broken">http://www.oreilly.com/mozilla/</b>' has been changed
                     23: to '<b class="fixed">http://www.oreilly.com/catalog/mozilla/</b>'<br><br>
1.18      david      24: 
1.20      david      25: </ul>
                     26: 
                     27: 
                     28: <a name="ch1">
                     29: <p><b>Chapter 1</b>
                     30: 
                     31: <ul>
                     32: 
1.53      david      33: <li>On page 7: '<b class="broken">applications web built using XPFE</b>' has been
                     34: changed to '<b class="fixed">applications built using XPFE</b>'<br><br>
1.18      david      35: 
1.20      david      36: </ul>
                     37: 
                     38: 
                     39: <a name="ch2">
                     40: <p><b>Chapter 2</b>
                     41: 
                     42: <ul>
                     43: 
1.57      david      44: <li>On page 10: Added a new sentence to the end of the 2nd paragraph of the xFly examples sidebar: '<b class="fixed">An installable version
1.58      david      45: of the complete xFly application can be found at http://xfly.mozdev.org.</b>'<br><br>
1.57      david      46: 
1.53      david      47: <li>On page 12: '<b class="broken">&lt;window
1.18      david      48: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"  
1.53      david      49: /&gt;</b>' has been changed to '<b class="fixed">&lt;window
                     50: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;</b>'<br><br>
1.18      david      51: 
1.64      david      52: <li>On page 14: In first code sample from Windows features section, '<b
                     53: class="broken">xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;</b>' has been changed to '<b
                     54: class="fixed">xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"</b>'<br><br>
1.18      david      55: 
1.53      david      56: <li>On page 17: '<b class="broken">selecting File > Open File > from</b>' has been
                     57: changed to '<b class="fixed">selecting File > Open File from</b>'<br><br>
1.18      david      58: 
1.53      david      59: <li>On page 20: '<b class="broken">CenterWindoOnScreen( ) function</b>' has been changed
                     60: to '<b class="fixed">CenterWindowOnScreen( ) function</b>'<br><br>
1.19      david      61: 
1.20      david      62: </ul>
                     63: 
                     64: 
                     65: <a name="ch3">
                     66: <p><b>Chapter 3</b>
                     67: 
                     68: <ul>
                     69: 
1.67      david      70: <li>On page 34: '<b class="broken">We've packed a lot information in this chapter and it be a useful reference</b>' has been changed
                     71: to '<b class="fixed">We've packed a lot of information in this chapter and it will be a useful reference</b>'<br><br>
1.66      david      72: 
1.71    ! david      73: <li>On page 35: '<b class="broken">secondLevelNodes[I] = docEl.childNodes[i];</b>' has been changed to '<b 
        !            74: class="fixed">secondLevelNodes[I] = docEl.childNodes[I];</b>'<br><br>
        !            75: 
1.54      david      76: <li>On page 40: '<b class="broken">&lt;toolbarbutton id="printBtn" label="Open"
                     77: oncommand="doPrint( );" /&gt</b>' has been changed to '<b class="fixed">&lt;toolbarbutton
                     78: id="printBtn" label="Print" oncommand="doPrint( );" &gt</b>'<br><br>
1.18      david      79: 
1.65      david      80: <li>On page 51: '<b class="broken">&lt;decription&gt;The mozdev.org site [...] your own development project&lt;/decription&gt;</b>' has been 
                     81: changed to '<b class="fixed">&lt;description&gt;The mozdev.org site [...] your own development project&lt;/description&gt;</b>'<br><br>
1.71    ! david      82: 
        !            83: <li>On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to seperate values)
        !            84: 
        !            85: <xmp class="fixed">
        !            86: <?xml version="1.0"?>
        !            87: <window id="hello-goodbye"
        !            88:     title="Hello Goodbye"
        !            89:     xmlns:html="http://www.w3.org/1999/xhtml"
        !            90:     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        !            91:     style="min-width:100px;min-height:100px;background-color:white;">
        !            92:   <broadcasterset id="broadcasterset">
        !            93:     <broadcaster id="cmd_hello" oncommand="alert('Hello There!');"/>
        !            94:   </broadcasterset>
        !            95:   <keyset id="keyset">
        !            96:     <key id="key_h" key="H" observes="cmd_hello" modifiers="accel,shift" />
        !            97:     <key id="key_g" key="G" command="cmd_goodbye" modifiers="accel,shift" />
        !            98:   </keyset>
        !            99:   <commandset id="commandset">
        !           100:     <command id="cmd_goodbye" oncommand="alert('Goodbye!');" />
        !           101:   </commandset>
        !           102:   <spacer flex="1"/>
        !           103:   <label value="hello/goodbye"/>
        !           104:   <textbox value="type ctl+shft+h"/>
        !           105:   <textbox value="type ctl+shft+g"/>
        !           106:   <spacer flex="1"/>
        !           107: </window>
        !           108: </xmp>
1.65      david     109: 
1.20      david     110: </ul>
                    111: 
1.26      petejc    112: <a name="ch5">
                    113: <p><b>Chapter 5</b>
                    114: 
                    115: <ul>
1.40      david     116: 
                    117: <li>On page 113: Javascript 1.5 reference link in footnote has been changed from 
1.54      david     118: '<b class="broken">http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html</b>' to
                    119: '<b class="fixed">http://developer.netscape.com/docs/manuals/index.html?content=javascript.html</b>'<br><br>
1.59      petejc    120: </li>
1.40      david     121: 
1.54      david     122: <li>On page 120: '<b class="broken">&lt;/script.</b>' has been changed to '<b class="fixed">&lt;/script&gt;</b>'<br><br>
1.59      petejc    123: </li>
1.41      david     124: 
1.54      david     125: <li>On page 120: '<b class="broken">dump(l+'\n');</b>' has been changed to '<b class="fixed">dump(len+'\n');</b>'<br><br>
1.59      petejc    126: </li>
1.41      david     127: 
1.61      david     128: <li>On page 135: Example 5-11 has been changed to
                    129: <xmp class="fixed">
1.59      petejc    130: <html>
                    131:   <head>
                    132:     <title>Sound Service Play Example</title>
                    133:     <script>  
                    134:       function play() { 
                    135:         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
                    136:         var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); 
                    137:         sample = sample.QueryInterface(Components.interfaces.nsISound); 
1.62      petejc    138:         const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";
                    139:         const SND_I_URL           = "nsIURL";
                    140:         const SND_URL             = new  C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
                    141:         var url                   = new SND_URL();
                    142:         url.spec                  = 'http://jslib.mozdev.org/test.wav';
                    143:         sample.play(url);
1.59      petejc    144:       } 
                    145:     </script>  
                    146:   </head>  
                    147:   <body>  
                    148:     <form name="form">  
                    149:       <input type="button" value="Play Sound" onclick="play();">  
1.63      petejc    150:     </form>  
1.59      petejc    151:   </body>  
                    152: </html>
                    153: </xmp>
1.61      david     154: </li>
                    155: 
                    156: <li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' has been changed to 
                    157: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
1.59      petejc    158: </li>
1.43      david     159: 
1.54      david     160: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
                    161: load('chrome/jslib/jslib.js');</b>'<br><br>
1.59      petejc    162: </li>
1.43      david     163: 
1.26      petejc    164: </ul>
                    165: 
1.24      petejc    166: <a name="ch08">
                    167: <p><b>Chapter 8</b>
                    168: 
                    169: <ul>
1.44      david     170: 
1.54      david     171: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been changed to '<b 
                    172: class="fixed">QueryInterface</b>'<br><br>
1.44      david     173: 
1.54      david     174: <li>On page 222: In Example 8-4 '<b class="broken">mName: "a default value"</b>' has been changed to '<b class="fixed">mName: "a default 
                    175: value",</b>'<br><br>
1.44      david     176: 
1.47      david     177: <li>On page 222: In Example 8-4
1.45      david     178: 
1.54      david     179:             <xmp class="broken">
1.33      petejc    180:               this.myCID,
                    181:               "My JS Component",
                    182:               this.myProgID, fileSpec,
                    183:               location, true, true,
                    184:               type);
                    185:             </xmp>            
1.45      david     186: 
1.47      david     187: has been changed to
1.45      david     188: 
1.54      david     189:             <xmp class="fixed">            
1.33      petejc    190:               compMgr.registerComponentWithType(
                    191:               this.myCID,
                    192:               "My JS Component",
                    193:               this.myProgID, fileSpec,
                    194:               location, true, true,
                    195:               type);
                    196:             </xmp>            
1.45      david     197: 
1.68      david     198: <li>On page 222: In Example 8-4 one of the duplicate '<b class="broken">dump(" ***** Registering: Simple JS component!
                    199: ****\n");</b>' lines has been removed<br><br>
1.45      david     200: 
1.54      david     201: <li>On page 223: In Example 8-4 one of the duplicate '<b class="broken">if (outer != null)</b>' lines has been removed<br><br>
1.45      david     202: 
                    203: <li>On page 239: Example 8-15 has been changed to <br/>
1.25      petejc    204: 
1.54      david     205: <xmp class="fixed">
1.24      petejc    206: DEPTH         = ../../..
                    207: topsrcdir     = ../../..
                    208: srcdir        = .
                    209: VPATH         = .
                    210: 
                    211: include $(DEPTH)/config/autoconf.mk
                    212: 
                    213: MODULE        = xpcom
                    214: XPIDL_MODULE  = simple
                    215: LIBRARY_NAME  = simple
                    216: IS_COMPONENT  = 1
                    217: MODULE_NAME   = nsSimpleModule
                    218: REQUIRES      = string \
                    219:                 xpcom \
                    220:                 $(NULL)
                    221: 
                    222: 
                    223: CPPSRCS   =              \
                    224:     nsSimple.cpp         \
                    225:     nsSimpleModule.cpp   \
                    226:     $(NULL)
                    227: 
                    228: XPIDLSRCS = nsISimple.idl
                    229: 
                    230: include $(topsrcdir)/config/config.mk
                    231: 
                    232: LIBS    +=        \
                    233:     $(XPCOM_LIBS) \
                    234:     $(NSPR_LIBS)  \
                    235:     $(NULL)
                    236: 
                    237: include $(topsrcdir)/config/rules.mk
                    238: 
                    239: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
                    240: 
                    241: install:: $(TARGETS)
1.25      petejc    242: </xmp>
1.24      petejc    243: 
                    244: </ul>
                    245: 
1.20      david     246: 
                    247: <a name="ch10">
                    248: <p><b>Chapter 10</b>
                    249: 
                    250: <ul>
1.54      david     251: <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been changed
                    252: to '<b class="fixed">http://jslib.mozdev.org</b>'<br><br></li>
1.68      david     253: </ul>
                    254: 
                    255: 
1.69      david     256: <a name="ch11">
                    257: <p><b>Chapter 11</b>
1.68      david     258: 
1.70      david     259: <ul> 
                    260: <li>On page 314: In Example 11-5 and Example 11-6 '<b class="broken">var linetext =
                    261: document.createTextNode(messageParagraphs[i]);</b>' has been changed to '<b class="fixed">var linetext =
                    262: document.createTextNode(lines[i]);</b>'<br><br>
1.20      david     263: </ul>
                    264: 
                    265: 
                    266: <a name="ch12">
                    267: <p><b>Chapter 12</b>
                    268: 
                    269: <ul>
                    270: 
1.47      david     271: <li>On page 336: In Example 12-6
1.20      david     272: 
1.54      david     273: <xmp class="broken">
1.38      petejc    274:  print `  <checkbox label="%s" />' % form['op1'].value
                    275:  print `  <checkbox label="%s" />' % form['op2'].value
                    276:    print `  <checkbox label="%s" />' % form['op3'].value
1.47      david     277: </xmp>
                    278: 
1.48      david     279: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
1.47      david     280: 
1.55      david     281: <xmp class="fixed">
1.48      david     282:    print '  <checkbox label="%s" />' % form['op1'].value
                    283:    print '  <checkbox label="%s" />' % form['op2'].value
1.38      petejc    284:    print '  <checkbox label="%s" />' % form['op3'].value
                    285: </xmp>
1.47      david     286: 
                    287: <li>On page 339: A new 'Certificate Authorities and Digital
                    288: Signatures' section is being written with drafts available on <a
                    289: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
1.38      petejc    290: </li>
1.47      david     291: 
1.20      david     292: </ul>
                    293: 
                    294: 
                    295: <a name="appa">
                    296: <p><b>Appendix A</b>
                    297: 
                    298: <ul>
1.18      david     299: 
1.54      david     300: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
                    301: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
1.18      david     302: 
1.1       david     303: </ul>
1.2       david     304: 
1.3       david     305: <br><br>
                    306: 
1.23      petejc    307: <!-- ?php require(NOTES); ? -->
                    308: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>