File:  [mozdev] / books / www / corrections.html
Revision 1.60: download - view: text, annotated - select for diffs - revision graph
Sat Dec 14 14:29:22 2002 UTC (17 years 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: </li>
  116: 
  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>
  119: </li>
  120: 
  121: </ul>
  122: 
  123: <a name="ch08">
  124: <p><b>Chapter 8</b>
  125: 
  126: <ul>
  127: 
  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>
  130: 
  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>
  133: 
  134: <li>On page 222: In Example 8-4
  135: 
  136:             <xmp class="broken">
  137:               this.myCID,
  138:               "My JS Component",
  139:               this.myProgID, fileSpec,
  140:               location, true, true,
  141:               type);
  142:             </xmp>            
  143: 
  144: has been changed to
  145: 
  146:             <xmp class="fixed">            
  147:               compMgr.registerComponentWithType(
  148:               this.myCID,
  149:               "My JS Component",
  150:               this.myProgID, fileSpec,
  151:               location, true, true,
  152:               type);
  153:             </xmp>            
  154: 
  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>
  157: 
  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>
  159: 
  160: <li>On page 239: Example 8-15 has been changed to <br/>
  161: 
  162: <xmp class="fixed">
  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)
  199: </xmp>
  200: 
  201: </ul>
  202: 
  203: 
  204: <a name="ch10">
  205: <p><b>Chapter 10</b>
  206: 
  207: <ul>
  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>
  210: </ul>
  211: 
  212: 
  213: <a name="ch12">
  214: <p><b>Chapter 12</b>
  215: 
  216: <ul>
  217: 
  218: <li>On page 336: In Example 12-6
  219: 
  220: <xmp class="broken">
  221:  print `  <checkbox label="%s" />' % form['op1'].value
  222:  print `  <checkbox label="%s" />' % form['op2'].value
  223:    print `  <checkbox label="%s" />' % form['op3'].value
  224: </xmp>
  225: 
  226: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
  227: 
  228: <xmp class="fixed">
  229:    print '  <checkbox label="%s" />' % form['op1'].value
  230:    print '  <checkbox label="%s" />' % form['op2'].value
  231:    print '  <checkbox label="%s" />' % form['op3'].value
  232: </xmp>
  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>
  237: </li>
  238: 
  239: </ul>
  240: 
  241: 
  242: <a name="appa">
  243: <p><b>Appendix A</b>
  244: 
  245: <ul>
  246: 
  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>
  249: 
  250: </ul>
  251: 
  252: <br><br>
  253: 
  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>