Diff for /books/www/chapters/ch02.html between versions 1.23 and 1.24

version 1.23, 2003/03/29 15:57:15 version 1.24, 2003/03/31 21:36:26
Line 1106  src="chrome://global/content/dialogOverl Line 1106  src="chrome://global/content/dialogOverl
     <ul>      <ul>
       <li>Under that directory, create the three new directories,        <li>Under that directory, create the three new directories,
       <i>content</i>, <i>locale</i>, and <i>skin</i>, as shown in        <i>content</i>, <i>locale</i>, and <i>skin</i>, as shown in
      <a href="#77010">Figure 2-5</a>. The <i>locale</i> directory       <a href="#77010">Figure 2-5</a>.</li>
      will have the default 'en-US' language pack structure.</li> 
     </ul>      </ul>
     <div class="c7">      <div class="c7">
       <img src="foo.gif">        <img src="foo.gif">
Line 1205  src="chrome://global/content/dialogOverl Line 1204  src="chrome://global/content/dialogOverl
      &lt;RDF:li resource="urn:mozilla:locale:en-US"/&gt;       &lt;RDF:li resource="urn:mozilla:locale:en-US"/&gt;
    &lt;/RDF:Seq&gt;     &lt;/RDF:Seq&gt;
    &lt;!-- locale information --&gt;     &lt;!-- locale information --&gt;
   &lt;RDF:Description about="urn:mozilla:locale:en-US"   &lt;/td&gt;&lt;RDF:Description about="urn:mozilla:locale:en-US"
          chrome:displayName="English(US)"           chrome:displayName="English(US)"
          chrome:author="xfly.mozdev.org"           chrome:author="xfly.mozdev.org"
          chrome:name="en-US"           chrome:name="en-US"
Line 1213  src="chrome://global/content/dialogOverl Line 1212  src="chrome://global/content/dialogOverl
 "http://www.mozilla.org/locales/en-US.gif">http://www.mozilla.org/locales/en-US.gif</a>"&gt;  "http://www.mozilla.org/locales/en-US.gif">http://www.mozilla.org/locales/en-US.gif</a>"&gt;
      &lt;chrome:packages&gt;       &lt;chrome:packages&gt;
        &lt;RDF:Seq about="urn:mozilla:locale:en-US:packages"&gt;         &lt;RDF:Seq about="urn:mozilla:locale:en-US:packages"&gt;
         &lt;RDF:li resource="urn:mozilla:locale:en-US:xfly"/&gt;         &lt;/td&gt;&lt;RDF:li resource="urn:mozilla:locale:en-US:xfly"/&gt;
        &lt;/RDF:Seq&gt;         &lt;/RDF:Seq&gt;
      &lt;/chrome:packages&gt;       &lt;/chrome:packages&gt;
    &lt;/RDF:Description&gt;     &lt;/RDF:Description&gt;
Line 1309  src="chrome://global/content/dialogOverl Line 1308  src="chrome://global/content/dialogOverl
     and put it into an external JavaScript file. <a href=      and put it into an external JavaScript file. <a href=
     "#77034">Example 2-10</a> shows a XUL file that gets a function      "#77034">Example 2-10</a> shows a XUL file that gets a function
     for the button from an external script file, given here as      for the button from an external script file, given here as
    <i>xfly.js</i>. </p>    <i>xfly.js</i>. Example 2-10<a name="77034"></a> <i>XUL using
    <p>Example 2-10<a name="77034"></a> <i>XUL using 
     an external script</i></p>      an external script</i></p>
 <pre>  <pre>
  &lt;?xml version="1.0"?&gt;   &lt;?xml version="1.0"?&gt;
Line 1410  src="chrome://xfly/content/xfly.js" /&gt Line 1408  src="chrome://xfly/content/xfly.js" /&gt
    src="chrome://xfly/content/xfly.js" /&gt;     src="chrome://xfly/content/xfly.js" /&gt;
   &lt;vbox align="left" id="vb"&gt;    &lt;vbox align="left" id="vb"&gt;
    &lt;label id="xlabel"     &lt;label id="xlabel"
       value="&amp;label.val;" /&gt;       value="&amp;label.val;"&lt;/td&gt; /&gt;
    &lt;image src="<a href=     &lt;image src="<a href=
 "http://books.mozdev.org/xfly.gif">http://books.mozdev.org/xfly.gif</a>" /&gt;  "http://books.mozdev.org/xfly.gif">http://books.mozdev.org/xfly.gif</a>" /&gt;
   &lt;button label="&amp;btn.lbl;" oncommand="greet( );" /&gt;   &lt;button label="&amp;btn.lbl;"&lt;/td&gt; oncommand="greet( );" /&gt;
   &lt;/vbox&gt;    &lt;/vbox&gt;
  &lt;/window&gt;   &lt;/window&gt;
 </pre>  </pre>
Line 1442  src="chrome://xfly/content/xfly.js" /&gt Line 1440  src="chrome://xfly/content/xfly.js" /&gt
                    xfly.xul                     xfly.xul
                    xfly.js                     xfly.js
                    contents.rdf                     contents.rdf
            locale/en-US/            locale/
                    xfly.dtd                     xfly.dtd
                    contents.rdf                     contents.rdf
             skin/              skin/
Line 1480  src="chrome://xfly/content/xfly.js" /&gt Line 1478  src="chrome://xfly/content/xfly.js" /&gt
 <pre>  <pre>
 content,install,url,resource:/chrome/xfly/content/  content,install,url,resource:/chrome/xfly/content/
 skin,install,url,resource:/chrome/xfly/skin/  skin,install,url,resource:/chrome/xfly/skin/
locale,install,url,resource:/chrome/xfly/locale/en-US/locale,install,url,resource:/chrome/xfly/locale/
 </pre>  </pre>
     <p>When Mozilla starts up, it looks for the package manifests,      <p>When Mozilla starts up, it looks for the package manifests,
     reads them, and registers the xFly package.</p>      reads them, and registers the xFly package.</p>
Line 1533  mozilla -chrome chrome://xfly/content/ Line 1531  mozilla -chrome chrome://xfly/content/
     launch the application or set the text file's creator type to      launch the application or set the text file's creator type to
     <tt>MOZZ</tt>. If you change the creator type, you should be      <tt>MOZZ</tt>. If you change the creator type, you should be
     able to double-click on the text file to launch Mozilla.</p>      able to double-click on the text file to launch Mozilla.</p>
   
       <p>Note: If you have trouble editing and relaunching the xFly
        application, there are a couple of platform specific culprits
        to look into. On Windows, the Quick Launch feature may prevent
        you from seeing changes to your files. On Unix, file permission
        conflicts can also cause problems viewing your files. Making sure that
        Quick Launch is disabled and double checking file
        permissions may help get xFly working on your system.
   
     <p>Once you register your application, you are free to continue      <p>Once you register your application, you are free to continue
     developing it in the various component subdirectories and      developing it in the various component subdirectories and
     relaunching it as it progresses. You can add new XUL files in      relaunching it as it progresses. You can add new XUL files in
Line 1567  mozilla -chrome chrome://xfly/content/ Line 1574  mozilla -chrome chrome://xfly/content/
     File a <a href=      File a <a href=
     "http://mozdev.org/bugs/enter_bug.cgi?product=books">Bug</a>      "http://mozdev.org/bugs/enter_bug.cgi?product=books">Bug</a>
     for chapter 2. <!-- ?php require(NOTES); ? -->      for chapter 2. <!-- ?php require(NOTES); ? -->
    <!-- ?php $hide_text_control=1; $post_to_list=NO; $author='reviewers@mozdev.org'; require(NOTES); ? -->    <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='ch02'; require(NOTES); ?>

Removed from v.1.23  
changed lines
  Added in v.1.24


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