Diff for /books/www/chapters/ch05.html between versions 1.21 and 1.22

version 1.21, 2003/03/19 15:10:11 version 1.22, 2003/03/21 11:37:34
Line 562  dump(count + " items checked \n"); Line 562  dump(count + " items checked \n");
    var chex   = document.getElementsByAttribute("disabled", "true");     var chex   = document.getElementsByAttribute("disabled", "true");
    var unchex = document.getElementsByAttribute("disabled", "false");     var unchex = document.getElementsByAttribute("disabled", "false");
    for (var i=0; i<chex.length; i++)     for (var i=0; i<chex.length; i++)
       chex[i].setAttributte("disabled", "false");       chex[i].setAttribute("disabled", "false");
    for (var i=0; i<unchex.length; i++)     for (var i=0; i<unchex.length; i++)
       unchex[i].setAttributte("disabled", "true");       unchex[i].setAttribute("disabled", "true");
  }   }
 </pre>  </pre>
     <p>Although this example doesn't update elements whose      <p>Although this example doesn't update elements whose
Line 1269  retval=OK; Line 1269  retval=OK;
     locally, since it wouldn't have the required XPConnect access      locally, since it wouldn't have the required XPConnect access
     as a remote file because of security boundaries) loaded in      as a remote file because of security boundaries) loaded in
     Mozilla instantiates a Mozilla sound component and plays a      Mozilla instantiates a Mozilla sound component and plays a
    sound with it. Go ahead and try it. Example 5-11<a name=    sound with it. Go ahead and try it. 
    "77032"></a> <i>Scripting components from HTML</i></p>    </p>
     
     <p>
     Example 5-11<a name= "77032"></a> <i>Scripting components from HTML</i></p>
 <xmp>  <xmp>
 <html>  <html>
   <head>    <head>

Removed from v.1.21  
changed lines
  Added in v.1.22


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