File:  [mozdev] / books / www / corrections.html
Revision 1.63: download - view: text, annotated - select for diffs - revision graph
Tue Dec 17 13:13:58 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 135: Example 5-11 has been changed to
   91: <xmp class="fixed">
   92: <html>
   93:   <head>
   94:     <title>Sound Service Play Example</title>
   95:     <script>  
   96:       function play() { 
   97:         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
   98:         var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); 
   99:         sample = sample.QueryInterface(Components.interfaces.nsISound); 
  100:         const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";
  101:         const SND_I_URL           = "nsIURL";
  102:         const SND_URL             = new  C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
  103:         var url                   = new SND_URL();
  104:         url.spec                  = 'http://jslib.mozdev.org/test.wav';
  105:         sample.play(url);
  106:       } 
  107:     </script>  
  108:   </head>  
  109:   <body>  
  110:     <form name="form">  
  111:       <input type="button" value="Play Sound" onclick="play();">  
  112:     </form>  
  113:   </body>  
  114: </html>
  115: </xmp>
  116: </li>
  117: 
  118: <li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' has been changed to 
  119: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
  120: </li>
  121: 
  122: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
  123: load('chrome/jslib/jslib.js');</b>'<br><br>
  124: </li>
  125: 
  126: </ul>
  127: 
  128: <a name="ch08">
  129: <p><b>Chapter 8</b>
  130: 
  131: <ul>
  132: 
  133: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been changed to '<b 
  134: class="fixed">QueryInterface</b>'<br><br>
  135: 
  136: <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 
  137: value",</b>'<br><br>
  138: 
  139: <li>On page 222: In Example 8-4
  140: 
  141:             <xmp class="broken">
  142:               this.myCID,
  143:               "My JS Component",
  144:               this.myProgID, fileSpec,
  145:               location, true, true,
  146:               type);
  147:             </xmp>            
  148: 
  149: has been changed to
  150: 
  151:             <xmp class="fixed">            
  152:               compMgr.registerComponentWithType(
  153:               this.myCID,
  154:               "My JS Component",
  155:               this.myProgID, fileSpec,
  156:               location, true, true,
  157:               type);
  158:             </xmp>            
  159: 
  160: <li>On page 222: In Example 8-4 one of the duplicate '<b class="broken">dump(" ***** Registering: Simple JS component! ****\n");</b>' lines
  161: has been removed<br><br>
  162: 
  163: <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>
  164: 
  165: <li>On page 239: Example 8-15 has been changed to <br/>
  166: 
  167: <xmp class="fixed">
  168: DEPTH         = ../../..
  169: topsrcdir     = ../../..
  170: srcdir        = .
  171: VPATH         = .
  172: 
  173: include $(DEPTH)/config/autoconf.mk
  174: 
  175: MODULE        = xpcom
  176: XPIDL_MODULE  = simple
  177: LIBRARY_NAME  = simple
  178: IS_COMPONENT  = 1
  179: MODULE_NAME   = nsSimpleModule
  180: REQUIRES      = string \
  181:                 xpcom \
  182:                 $(NULL)
  183: 
  184: 
  185: CPPSRCS   =              \
  186:     nsSimple.cpp         \
  187:     nsSimpleModule.cpp   \
  188:     $(NULL)
  189: 
  190: XPIDLSRCS = nsISimple.idl
  191: 
  192: include $(topsrcdir)/config/config.mk
  193: 
  194: LIBS    +=        \
  195:     $(XPCOM_LIBS) \
  196:     $(NSPR_LIBS)  \
  197:     $(NULL)
  198: 
  199: include $(topsrcdir)/config/rules.mk
  200: 
  201: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
  202: 
  203: install:: $(TARGETS)
  204: </xmp>
  205: 
  206: </ul>
  207: 
  208: 
  209: <a name="ch10">
  210: <p><b>Chapter 10</b>
  211: 
  212: <ul>
  213: <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been changed
  214: to '<b class="fixed">http://jslib.mozdev.org</b>'<br><br></li>
  215: </ul>
  216: 
  217: 
  218: <a name="ch12">
  219: <p><b>Chapter 12</b>
  220: 
  221: <ul>
  222: 
  223: <li>On page 336: In Example 12-6
  224: 
  225: <xmp class="broken">
  226:  print `  <checkbox label="%s" />' % form['op1'].value
  227:  print `  <checkbox label="%s" />' % form['op2'].value
  228:    print `  <checkbox label="%s" />' % form['op3'].value
  229: </xmp>
  230: 
  231: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
  232: 
  233: <xmp class="fixed">
  234:    print '  <checkbox label="%s" />' % form['op1'].value
  235:    print '  <checkbox label="%s" />' % form['op2'].value
  236:    print '  <checkbox label="%s" />' % form['op3'].value
  237: </xmp>
  238: 
  239: <li>On page 339: A new 'Certificate Authorities and Digital
  240: Signatures' section is being written with drafts available on <a
  241: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
  242: </li>
  243: 
  244: </ul>
  245: 
  246: 
  247: <a name="appa">
  248: <p><b>Appendix A</b>
  249: 
  250: <ul>
  251: 
  252: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
  253: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
  254: 
  255: </ul>
  256: 
  257: <br><br>
  258: 
  259: <!-- ?php require(NOTES); ? -->
  260: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>

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