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

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.53      david      52: <li>On page 14: Removed an extra '<b class="broken">></b>' from example code<br><br>
1.18      david      53: 
1.53      david      54: <li>On page 17: '<b class="broken">selecting File > Open File > from</b>' has been
                     55: changed to '<b class="fixed">selecting File > Open File from</b>'<br><br>
1.18      david      56: 
1.53      david      57: <li>On page 20: '<b class="broken">CenterWindoOnScreen( ) function</b>' has been changed
                     58: to '<b class="fixed">CenterWindowOnScreen( ) function</b>'<br><br>
1.19      david      59: 
1.20      david      60: </ul>
                     61: 
                     62: 
                     63: <a name="ch3">
                     64: <p><b>Chapter 3</b>
                     65: 
                     66: <ul>
                     67: 
1.54      david      68: <li>On page 40: '<b class="broken">&lt;toolbarbutton id="printBtn" label="Open"
                     69: oncommand="doPrint( );" /&gt</b>' has been changed to '<b class="fixed">&lt;toolbarbutton
                     70: id="printBtn" label="Print" oncommand="doPrint( );" &gt</b>'<br><br>
1.18      david      71: 
1.20      david      72: </ul>
                     73: 
1.26      petejc     74: <a name="ch5">
                     75: <p><b>Chapter 5</b>
                     76: 
                     77: <ul>
1.40      david      78: 
                     79: <li>On page 113: Javascript 1.5 reference link in footnote has been changed from 
1.54      david      80: '<b class="broken">http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html</b>' to
                     81: '<b class="fixed">http://developer.netscape.com/docs/manuals/index.html?content=javascript.html</b>'<br><br>
1.59      petejc     82: </li>
1.40      david      83: 
1.54      david      84: <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     85: </li>
1.41      david      86: 
1.54      david      87: <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     88: </li>
1.41      david      89: 
1.54      david      90: <li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' has been changed to 
                     91: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
1.59      petejc     92: </li>
                     93: 
                     94: <li>On page 135: Example 5-11 needs to be:
                     95: <xmp>
                     96: <html>
                     97:   <head>
                     98:     <title>Sound Service Play Example</title>
                     99:     <script>  
                    100:       function play() { 
                    101:         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
                    102:         var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); 
                    103:         sample = sample.QueryInterface(Components.interfaces.nsISound); 
                    104:         sample.playSystemSound('resource:/res/samples/test.wav'); 
                    105:       } 
                    106:     </script>  
                    107:   </head>  
                    108:   <body>  
                    109:     <form name="form">  
                    110:       <input type="button" value="Play Sound" onclick="play();">  
                    111:    </form>  
                    112:   </body>  
                    113: </html>
                    114: </xmp>
                    115: </li>
1.43      david     116: 
1.54      david     117: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
                    118: load('chrome/jslib/jslib.js');</b>'<br><br>
1.59      petejc    119: </li>
1.43      david     120: 
1.26      petejc    121: </ul>
                    122: 
1.24      petejc    123: <a name="ch08">
                    124: <p><b>Chapter 8</b>
                    125: 
                    126: <ul>
1.44      david     127: 
1.54      david     128: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been changed to '<b 
                    129: class="fixed">QueryInterface</b>'<br><br>
1.44      david     130: 
1.54      david     131: <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 
                    132: value",</b>'<br><br>
1.44      david     133: 
1.47      david     134: <li>On page 222: In Example 8-4
1.45      david     135: 
1.54      david     136:             <xmp class="broken">
1.33      petejc    137:               this.myCID,
                    138:               "My JS Component",
                    139:               this.myProgID, fileSpec,
                    140:               location, true, true,
                    141:               type);
                    142:             </xmp>            
1.45      david     143: 
1.47      david     144: has been changed to
1.45      david     145: 
1.54      david     146:             <xmp class="fixed">            
1.33      petejc    147:               compMgr.registerComponentWithType(
                    148:               this.myCID,
                    149:               "My JS Component",
                    150:               this.myProgID, fileSpec,
                    151:               location, true, true,
                    152:               type);
                    153:             </xmp>            
1.45      david     154: 
1.54      david     155: <li>On page 222: In Example 8-4 one of the duplicate '<b class="broken">dump(" ***** Registering: Simple JS component! ****\n");</b>' lines
                    156: has been removed<br><br>
1.45      david     157: 
1.54      david     158: <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     159: 
                    160: <li>On page 239: Example 8-15 has been changed to <br/>
1.25      petejc    161: 
1.54      david     162: <xmp class="fixed">
1.24      petejc    163: DEPTH         = ../../..
                    164: topsrcdir     = ../../..
                    165: srcdir        = .
                    166: VPATH         = .
                    167: 
                    168: include $(DEPTH)/config/autoconf.mk
                    169: 
                    170: MODULE        = xpcom
                    171: XPIDL_MODULE  = simple
                    172: LIBRARY_NAME  = simple
                    173: IS_COMPONENT  = 1
                    174: MODULE_NAME   = nsSimpleModule
                    175: REQUIRES      = string \
                    176:                 xpcom \
                    177:                 $(NULL)
                    178: 
                    179: 
                    180: CPPSRCS   =              \
                    181:     nsSimple.cpp         \
                    182:     nsSimpleModule.cpp   \
                    183:     $(NULL)
                    184: 
                    185: XPIDLSRCS = nsISimple.idl
                    186: 
                    187: include $(topsrcdir)/config/config.mk
                    188: 
                    189: LIBS    +=        \
                    190:     $(XPCOM_LIBS) \
                    191:     $(NSPR_LIBS)  \
                    192:     $(NULL)
                    193: 
                    194: include $(topsrcdir)/config/rules.mk
                    195: 
                    196: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
                    197: 
                    198: install:: $(TARGETS)
1.25      petejc    199: </xmp>
1.24      petejc    200: 
                    201: </ul>
                    202: 
1.20      david     203: 
                    204: <a name="ch10">
                    205: <p><b>Chapter 10</b>
                    206: 
                    207: <ul>
1.54      david     208: <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been changed
                    209: to '<b class="fixed">http://jslib.mozdev.org</b>'<br><br></li>
1.20      david     210: </ul>
                    211: 
                    212: 
                    213: <a name="ch12">
                    214: <p><b>Chapter 12</b>
                    215: 
                    216: <ul>
                    217: 
1.47      david     218: <li>On page 336: In Example 12-6
1.20      david     219: 
1.54      david     220: <xmp class="broken">
1.38      petejc    221:  print `  <checkbox label="%s" />' % form['op1'].value
                    222:  print `  <checkbox label="%s" />' % form['op2'].value
                    223:    print `  <checkbox label="%s" />' % form['op3'].value
1.47      david     224: </xmp>
                    225: 
1.48      david     226: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
1.47      david     227: 
1.55      david     228: <xmp class="fixed">
1.48      david     229:    print '  <checkbox label="%s" />' % form['op1'].value
                    230:    print '  <checkbox label="%s" />' % form['op2'].value
1.38      petejc    231:    print '  <checkbox label="%s" />' % form['op3'].value
                    232: </xmp>
1.47      david     233: 
                    234: <li>On page 339: A new 'Certificate Authorities and Digital
                    235: Signatures' section is being written with drafts available on <a
                    236: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
1.38      petejc    237: </li>
1.47      david     238: 
1.20      david     239: </ul>
                    240: 
                    241: 
                    242: <a name="appa">
                    243: <p><b>Appendix A</b>
                    244: 
                    245: <ul>
1.18      david     246: 
1.54      david     247: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
                    248: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
1.18      david     249: 
1.1       david     250: </ul>
1.2       david     251: 
1.3       david     252: <br><br>
                    253: 
1.23      petejc    254: <!-- ?php require(NOTES); ? -->
                    255: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>

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