Diff for /books/www/chapters/ch11.html between versions 1.9 and 1.10

version 1.9, 2002/12/11 19:10:24 version 1.10, 2003/01/19 16:53:09
Line 855  dontDeleteFiles=Don't Delete Files Line 855  dontDeleteFiles=Don't Delete Files
     <p><i>Example 11-5: <a name="77016"></a></i> <i>Using multiple      <p><i>Example 11-5: <a name="77016"></a></i> <i>Using multiple
     &lt;description&gt; elements</i></p>      &lt;description&gt; elements</i></p>
 <pre>  <pre>
 var text = window.arguments&lt;/td&gt;[0]; var text = window.arguments[0];
  var holder = document.getElementById("main-message");   var holder = document.getElementById("main-message");
  var lines = text.split("\n");   var lines = text.split("\n");
  for (var i = 0; i &lt; lines.length; i++) {   for (var i = 0; i &lt; lines.length; i++) {
    var descriptionNode = document.createElement("description");     var descriptionNode = document.createElement("description");
   var linetext = document.createTextNode(messageParagraphs&lt;/td&gt;[i]);   var linetext = document.createTextNode(lines[i]);
    descriptionNode.appendChild(linetext);     descriptionNode.appendChild(linetext);
    holder.appendChild(descriptionNode);     holder.appendChild(descriptionNode);
  }   }
Line 881  dontDeleteFiles=Don't Delete Files Line 881  dontDeleteFiles=Don't Delete Files
     <p><i>Example 11-6: <a name="77018"></a></i> <i>Using the HTML      <p><i>Example 11-6: <a name="77018"></a></i> <i>Using the HTML
     break tag</i></p>      break tag</i></p>
 <pre>  <pre>
 var text = window.arguments&lt;/td&gt;[0]; var text = window.arguments[0];
  var holder = document.getElementById("main-message");   var holder = document.getElementById("main-message");
  var lines = text.split("\n");   var lines = text.split("\n");
  var descriptionNode = document.createElement("description");   var descriptionNode = document.createElement("description");
  for (var i = 0; i &lt; lines.length; i++) {   for (var i = 0; i &lt; lines.length; i++) {
   var linetext = document.createTextNode(messageParagraphs&lt;/td&gt;[i]);   var linetext = document.createTextNode(lines[i]);
    var breakNode = document.createElement("html:br");     var breakNode = document.createElement("html:br");
    descriptionNode.appendChild(linetext);     descriptionNode.appendChild(linetext);
    descriptionNode.appendChild(breakNode);     descriptionNode.appendChild(breakNode);

Removed from v.1.9  
changed lines
  Added in v.1.10


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