File:  [mozdev] / books / www / corrections.html
Revision 1.66: download - view: text, annotated - select for diffs - revision graph
Fri Jan 3 21:00:54 2003 UTC (16 years, 11 months ago) by david
Branches: MAIN
CVS tags: HEAD
adding correction

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

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