Differences from version 1 to 2



@@ -1,20 +1,15 @@

 {maketoc}
 !The utility functions
 
-The library comes with many predefined objects and utility functions. The obvious goal of
-these functions is to save you a lot of repeated typing and idioms.
-
+The library comes with many predefined objects and utility functions. The obvious goal of these functions is to save you a lot of repeated typing and idioms.
 
 !!Using the $() function
 
-The $() function is a handy shortcut to the all-too-frequent document.getElementById() function
-of the DOM. Like the DOM function, this one returns the element that has the id passed as an argument.
+The $() function is a handy shortcut to the all-too-frequent document.getElementById() function of the DOM. Like the DOM function, this one returns the element that has the id passed as an argument.
 
-Unlike the DOM function, though, this one goes further. You can pass more than one id and
-$() will return an Array object with
-all the requested elements. The example below should illustrate this.
+Unlike the DOM function, though, this one goes further. You can pass more than one id and $() will return an Array object with all the requested elements. The example below should illustrate this.
 
-{code source=Html4Strict}
+{code source=JavaScript}
 <html>
  <head>
  <title> Test Page </title>

@@ -49,16 +44,13 @@

 </html>
 {/code}
 
-Another nice thing about this function is that you can pass either the id string or the element object itself,
-which makes this function very useful when creating other functions that can also take either form of argument.
-
+Another nice thing about this function is that you can pass either the id string or the element object itself, which makes this function very useful when creating other functions that can also take either form of argument.
 
 !!Using the $F() function
 
-The $F() function is a another welcome shortcut. It returns the value of any field input control,
-like text boxes or drop-down lists. The function can take as argument either the element id or the element object itself.
+The $F() function is a another welcome shortcut. It returns the value of any field input control, like text boxes or drop-down lists. The function can take as argument either the element id or the element object itself.
 
-{code source=Html4Strict}
+{code source=JavaScript}
 <script>
  function test3() {
  alert( $F('userName') );

@@ -68,20 +60,14 @@

 <input type="text" id="userName" value="Joe Doe"><br>
 <input type="button" value=Test3 onclick="test3();"><br>
 {/code}
-
 
 !!Using the Try.these() function
 
-The Try.these() function makes it easy when you want to, ahem, try
-different function calls until one of them works. It takes a number of functions as arguments
-and calls them one by one, in sequence, until one of them works, returning the result of that
-successful function call.
+The Try.these() function makes it easy when you want to, ahem, try different function calls until one of them works. It takes a number of functions as arguments and calls them one by one, in sequence, until one of them works, returning the result of that successful function call.
 
-In the example below, the function xmlNode.text works in some browsers,
-and xmlNode.textContent works in the other browsers. Using the
-Try.these() function we can return the one that works.
+In the example below, the function xmlNode.text works in some browsers, and xmlNode.textContent works in the other browsers. Using the Try.these() function we can return the one that works.
 
-{code source=Html4Strict}
+{code source=JavaScript}
 <script>
  function getXmlNodeValue(xmlNode){
  return Try.these(
Page History
Date/CommentUserIPVersion
23 Dec 2005 (10:20 UTC)
xing194.152.164.452
Current • Source
xing194.152.164.451
View • Compare • Difference • Source