--- books/www/chapters/ch05.html 2002/12/17 13:13:19 1.19 +++ books/www/chapters/ch05.html 2003/04/02 19:35:41 1.26 @@ -562,9 +562,9 @@ dump(count + " items checked \n"); var chex = document.getElementsByAttribute("disabled", "true"); var unchex = document.getElementsByAttribute("disabled", "false"); for (var i=0; i<chex.length; i++) - chex</td>[i].setAttributte("checked", "false"); + chex[i].setAttribute("disabled", "false"); for (var i=0; i<unchex.length; i++) - unchex</td>[i].setAttributte("checked", "true"); + unchex[i].setAttribute("disabled", "true"); }

Although this example doesn't update elements whose @@ -1269,8 +1269,11 @@ retval=OK; locally, since it wouldn't have the required XPConnect access as a remote file because of security boundaries) loaded in Mozilla instantiates a Mozilla sound component and plays a - sound with it. Go ahead and try it. Example 5-11 Scripting components from HTML

+ sound with it. Go ahead and try it. +

+ +

+ Example 5-11 Scripting components from HTML

<html> <head> @@ -1840,5 +1843,5 @@ textfield2.setAttribute("value", md); <br> File a <a href= "http://mozdev.org/bugs/enter_bug.cgi?product=books">Bug</a> - for chapter 5. <!-- ?php require(NOTES); ? --> - <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='ch05'; require(NOTES); ?> + for chapter 5. + <?php $hide_text_control=1; $post_to_list=NO; $author='reviewers@mozdev.org'; // require(NOTES);>