File:  [mozdev] / books / www / corrections.html
Revision 1.59: download - view: text, annotated - select for diffs - revision graph
Sat Dec 14 14:28:30 2002 UTC (17 years, 3 months ago) by petejc
Branches: MAIN
CVS tags: HEAD
--pete

    1: <style>
    2:   .broken { color: red; }
    3:   .fixed { color: green; }
    4: </style>
    5: 
    6: <p><b>Corrections</b>
    7: 
    8: <p>This page contains a list of corrections to be made in the next printing of
    9: the book.  If you have suggestions for changes or find errors in the text,
   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
   12: href="mailto:reviewers@mozdev.org">reviewers@mozdev.org</a> mailing list.
   13: 
   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>.
   16: 
   17: <a name="preface">
   18: <p><b>Preface</b>
   19: 
   20: <ul>
   21: 
   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>
   24: 
   25: </ul>
   26: 
   27: 
   28: <a name="ch1">
   29: <p><b>Chapter 1</b>
   30: 
   31: <ul>
   32: 
   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>
   35: 
   36: </ul>
   37: 
   38: 
   39: <a name="ch2">
   40: <p><b>Chapter 2</b>
   41: 
   42: <ul>
   43: 
   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
   45: of the complete xFly application can be found at http://xfly.mozdev.org.</b>'<br><br>
   46: 
   47: <li>On page 12: '<b class="broken">&lt;window
   48: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"  
   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>
   51: 
   52: <li>On page 14: Removed an extra '<b class="broken">></b>' from example code<br><br>
   53: 
   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>
   56: 
   57: <li>On page 20: '<b class="broken">CenterWindoOnScreen( ) function</b>' has been changed
   58: to '<b class="fixed">CenterWindowOnScreen( ) function</b>'<br><br>
   59: 
   60: </ul>
   61: 
   62: 
   63: <a name="ch3">
   64: <p><b>Chapter 3</b>
   65: 
   66: <ul>
   67: 
   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>
   71: 
   72: </ul>
   73: 
   74: <a name="ch5">
   75: <p><b>Chapter 5</b>
   76: 
   77: <ul>
   78: 
   79: <li>On page 113: Javascript 1.5 reference link in footnote has been changed from 
   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>
   82: </li>
   83: 
   84: <li>On page 120: '<b class="broken">&lt;/script.</b>' has been changed to '<b class="fixed">&lt;/script&gt;</b>'<br><br>
   85: </li>
   86: 
   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>
   88: </li>
   89: 
   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>
   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: <br><br>
  116: </li>
  117: 
  118: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
  119: load('chrome/jslib/jslib.js');</b>'<br><br>
  120: </li>
  121: 
  122: </ul>
  123: 
  124: <a name="ch08">
  125: <p><b>Chapter 8</b>
  126: 
  127: <ul>
  128: 
  129: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been changed to '<b 
  130: class="fixed">QueryInterface</b>'<br><br>
  131: 
  132: <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 
  133: value",</b>'<br><br>
  134: 
  135: <li>On page 222: In Example 8-4
  136: 
  137:             <xmp class="broken">
  138:               this.myCID,
  139:               "My JS Component",
  140:               this.myProgID, fileSpec,
  141:               location, true, true,
  142:               type);
  143:             </xmp>            
  144: 
  145: has been changed to
  146: 
  147:             <xmp class="fixed">            
  148:               compMgr.registerComponentWithType(
  149:               this.myCID,
  150:               "My JS Component",
  151:               this.myProgID, fileSpec,
  152:               location, true, true,
  153:               type);
  154:             </xmp>            
  155: 
  156: <li>On page 222: In Example 8-4 one of the duplicate '<b class="broken">dump(" ***** Registering: Simple JS component! ****\n");</b>' lines
  157: has been removed<br><br>
  158: 
  159: <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>
  160: 
  161: <li>On page 239: Example 8-15 has been changed to <br/>
  162: 
  163: <xmp class="fixed">
  164: DEPTH         = ../../..
  165: topsrcdir     = ../../..
  166: srcdir        = .
  167: VPATH         = .
  168: 
  169: include $(DEPTH)/config/autoconf.mk
  170: 
  171: MODULE        = xpcom
  172: XPIDL_MODULE  = simple
  173: LIBRARY_NAME  = simple
  174: IS_COMPONENT  = 1
  175: MODULE_NAME   = nsSimpleModule
  176: REQUIRES      = string \
  177:                 xpcom \
  178:                 $(NULL)
  179: 
  180: 
  181: CPPSRCS   =              \
  182:     nsSimple.cpp         \
  183:     nsSimpleModule.cpp   \
  184:     $(NULL)
  185: 
  186: XPIDLSRCS = nsISimple.idl
  187: 
  188: include $(topsrcdir)/config/config.mk
  189: 
  190: LIBS    +=        \
  191:     $(XPCOM_LIBS) \
  192:     $(NSPR_LIBS)  \
  193:     $(NULL)
  194: 
  195: include $(topsrcdir)/config/rules.mk
  196: 
  197: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
  198: 
  199: install:: $(TARGETS)
  200: </xmp>
  201: 
  202: </ul>
  203: 
  204: 
  205: <a name="ch10">
  206: <p><b>Chapter 10</b>
  207: 
  208: <ul>
  209: <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been changed
  210: to '<b class="fixed">http://jslib.mozdev.org</b>'<br><br></li>
  211: </ul>
  212: 
  213: 
  214: <a name="ch12">
  215: <p><b>Chapter 12</b>
  216: 
  217: <ul>
  218: 
  219: <li>On page 336: In Example 12-6
  220: 
  221: <xmp class="broken">
  222:  print `  <checkbox label="%s" />' % form['op1'].value
  223:  print `  <checkbox label="%s" />' % form['op2'].value
  224:    print `  <checkbox label="%s" />' % form['op3'].value
  225: </xmp>
  226: 
  227: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
  228: 
  229: <xmp class="fixed">
  230:    print '  <checkbox label="%s" />' % form['op1'].value
  231:    print '  <checkbox label="%s" />' % form['op2'].value
  232:    print '  <checkbox label="%s" />' % form['op3'].value
  233: </xmp>
  234: 
  235: <li>On page 339: A new 'Certificate Authorities and Digital
  236: Signatures' section is being written with drafts available on <a
  237: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
  238: </li>
  239: 
  240: </ul>
  241: 
  242: 
  243: <a name="appa">
  244: <p><b>Appendix A</b>
  245: 
  246: <ul>
  247: 
  248: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
  249: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
  250: 
  251: </ul>
  252: 
  253: <br><br>
  254: 
  255: <!-- ?php require(NOTES); ? -->
  256: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>

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