jspro-cvs Mailing List for jsPro (Page 4)
Brought to you by:
wigleys
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(51) |
Oct
(21) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(4) |
Feb
(15) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <gat...@us...> - 2003-09-14 09:16:31
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv3474
Modified Files:
error.js
Log Message:
@summary tag added to Error.prototype.handleError(), changed debug --> oDebug; would like to discuss restructuring the code for the debug window, since current incarnation leaves a couple of places open for problems: (1) user difficulty and (2) error handling in debug window
Index: error.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/error.js,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** error.js 12 Sep 2003 14:23:02 -0000 1.12
--- error.js 14 Sep 2003 09:16:28 -0000 1.13
***************
*** 48,51 ****
--- 48,52 ----
* <code>var jsProDebugWindow = oDebug</code>.
*
+ * @summary handles exceptions that are thrown
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 74,78 ****
break;
case 4 :
! var jsProDebugWindow = debug;
if (jsProDebugWindow) {
var oDebugWindow = jsProDebugWindow.debugWindow;
--- 75,79 ----
break;
case 4 :
! var jsProDebugWindow = oDebug;
if (jsProDebugWindow) {
var oDebugWindow = jsProDebugWindow.debugWindow;
|
|
From: <gat...@us...> - 2003-09-14 09:09:20
|
Update of /cvsroot/jspro/jsPro In directory sc8-pr-cvs1:/tmp/cvs-serv2295 Modified Files: point.js Log Message: @summary tag was on wrong function Index: point.js =================================================================== RCS file: /cvsroot/jspro/jsPro/point.js,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** point.js 12 Sep 2003 14:23:02 -0000 1.12 --- point.js 14 Sep 2003 09:09:17 -0000 1.13 *************** *** 32,36 **** * optional abscissa and ordinate arguments are specified). * - * @summary distance between two points * @author Davy Cielen * @author Randolph Fielding --- 32,35 ---- *************** *** 85,88 **** --- 84,88 ---- * argument is specified). * + * @summary distance between two points * @author Davy Cielen * @author Randolph Fielding |
|
From: <gat...@us...> - 2003-09-14 09:01:24
|
Update of /cvsroot/jspro/jsPro In directory sc8-pr-cvs1:/tmp/cvs-serv1090 Modified Files: string.js Log Message: spelling correction Index: string.js =================================================================== RCS file: /cvsroot/jspro/jsPro/string.js,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** string.js 12 Sep 2003 14:23:02 -0000 1.14 --- string.js 14 Sep 2003 09:01:21 -0000 1.15 *************** *** 77,81 **** * number of occurrences of that member's key in this string. * ! * @summary count occurence of characters * @author Stuart Wigley * @author Randolph Fielding --- 77,81 ---- * number of occurrences of that member's key in this string. * ! * @summary count occurrence of characters * @author Stuart Wigley * @author Randolph Fielding |
|
From: <gat...@us...> - 2003-09-14 08:55:11
|
Update of /cvsroot/jspro/jsPro/debug
In directory sc8-pr-cvs1:/tmp/cvs-serv32557/debug
Modified Files:
debug.css
Log Message:
simplified some styles; added a generic font, since all systems may not have verdana
Index: debug.css
===================================================================
RCS file: /cvsroot/jspro/jsPro/debug/debug.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** debug.css 3 Sep 2003 09:20:01 -0000 1.2
--- debug.css 14 Sep 2003 08:55:07 -0000 1.3
***************
*** 1,3 ****
! /* +-------------------------------------------------------------------------+
* | jsPro - Debug Window Stylesheet |
* +-------------------------------------------------------------------------+
--- 1,4 ----
! /**
! * +-------------------------------------------------------------------------+
* | jsPro - Debug Window Stylesheet |
* +-------------------------------------------------------------------------+
***************
*** 19,22 ****
--- 20,24 ----
* +-------------------------------------------------------------------------+
* | Authors: Stuart Wigley <stu...@ya...> |
+ * | Randolph Fielding <gat...@ci...> |
* +-------------------------------------------------------------------------+
* $Id$
***************
*** 25,58 ****
body {
! font-family: Verdana;
! font-size: 9pt;
! margin: 0;
}
-
input {
! color: #000066;
! background-color: #dddddd;
! border: 1px solid #aaaaaa;
}
-
table {
! border-spacing: 0; /*specifically for mozilla*/
! border-collapse: collapse; /*specifically for IE6*/
width: 400px;
}
-
th {
! border-bottom: 2px solid #000000;
! background-color: #dddddd;
padding: 2px;
text-align: left;
}
-
tr {
! border: 1px solid #000000;
font-size: 9pt;
! }
--- 27,55 ----
body {
! font: 9pt Verdana, sans-serif;
! margin: 0px;
}
input {
! background-color: #DDD;
! border: 1px solid #AAA;
! color: #006;
}
table {
! border-collapse: collapse; /* specifically for IE6 */
! border-spacing: 0px; /* specifically for mozilla */
width: 400px;
}
th {
! background-color: #DDD;
! border-bottom: 2px solid black;
padding: 2px;
text-align: left;
}
tr {
! border: 1px solid black;
font-size: 9pt;
! }
\ No newline at end of file
|
|
From: <gat...@us...> - 2003-09-14 08:27:31
|
Update of /cvsroot/jspro/jsPro/debug In directory sc8-pr-cvs1:/tmp/cvs-serv28465/debug Modified Files: debug.html Log Message: verrrrry slight reformatting Index: debug.html =================================================================== RCS file: /cvsroot/jspro/jsPro/debug/debug.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** debug.html 6 Sep 2003 01:47:09 -0000 1.3 --- debug.html 14 Sep 2003 08:27:27 -0000 1.4 *************** *** 24,28 **** * +-------------------------------------------------------------------------+ * $Id$ - * --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> --- 24,27 ---- *************** *** 31,35 **** <script type="text/javascript" src="../error.js"></script> <script type="text/javascript" src="debug.js"></script> ! <link rel="stylesheet" type="text/css" href="debug.css"/> </head> <body> --- 30,34 ---- <script type="text/javascript" src="../error.js"></script> <script type="text/javascript" src="debug.js"></script> ! <link rel="stylesheet" type="text/css" href="debug.css" /> </head> <body> *************** *** 38,43 **** <tr> <th colspan="2"> ! <input type="button" value="Clear" onclick="Debug.prototype.clear()" onfocus="this.blur()"/> ! <input type="button" value="Close" onclick="window.close()" onfocus="this.blur()"/> </th> </tr> --- 37,42 ---- <tr> <th colspan="2"> ! <input type="button" value="Clear" onclick="Debug.prototype.clear()" onfocus="this.blur()" /> ! <input type="button" value="Close" onclick="window.close()" onfocus="this.blur()" /> </th> </tr> *************** *** 46,49 **** </table> </body> ! </html> ! --- 45,47 ---- </table> </body> ! </html> \ No newline at end of file |
|
From: <gat...@us...> - 2003-09-14 08:21:33
|
Update of /cvsroot/jspro/jsPro/docs In directory sc8-pr-cvs1:/tmp/cvs-serv27564/docs Modified Files: string.html Log Message: added oDebug; slight reformatting Index: string.html =================================================================== RCS file: /cvsroot/jspro/jsPro/docs/string.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** string.html 6 Sep 2003 01:46:27 -0000 1.2 --- string.html 14 Sep 2003 08:21:29 -0000 1.3 *************** *** 24,171 **** * +-------------------------------------------------------------------------+ * $Id$ - * --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - String</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../string.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! </script> ! </head> ! <body> ! <table> ! <tbody> ! <tr> ! <td colspan="4"> ! <input id="inputString" name="inputString" type="text" size="50"/> ! </td> ! </tr> ! <tr> ! <td>String.addSlashes()</td> ! <td></td> ! <td><input id="addSlashes" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="addSlashesResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.count()</td> ! <td></td> ! <td><input id="count" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="countResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.htmlEntities()</td> ! <td></td> ! <td><input id="htmlEntities" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="htmlEntitiesResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.htmlSpecialChars()</td> ! <td></td> ! <td><input id="htmlSpecialChars" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="htmlSpecialCharsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.isEmailAddress()</td> ! <td></td> ! <td><input id="isEmailAddress" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="isEmailAddressResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.levenshtein()</td> ! <td><input id="levenshtein1" name="input" type="text" size="5"/></td> ! <td><input id="levenshtein" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="levenshteinResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.lpad()</td> ! <td><input id="lpad1" name="input" type="text" size="5"/> ! <input id="lpad2" name="input" type="text" size="5"/></td> ! <td><input id="lpad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="lpadResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.ltrim()</td> ! <td></td> ! <td><input id="ltrim" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="ltrimResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.nl2br()</td> ! <td><input id="nl2br1" name="input" type="text" size="5"/></td> ! <td><input id="nl2br" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="nl2brResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.pad()</td> ! <td><input id="pad1" name="input" type="text" size="5"/> ! <input id="pad2" name="input" type="text" size="5"/> ! <input id="pad3" name="input" type="text" size="5"/></td> ! <td><input id="pad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="padResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.repeat()</td> ! <td><input id="repeat1" name="input" type="text" size="5"/></td> ! <td><input id="repeat" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="repeatResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.reverse()</td> ! <td><input id="reverse1" name="input" type="text" size="5"/> ! <input id="reverse2" name="input" type="text" size="5"/></td> ! <td><input id="reverse" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="reverseResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.rot13()</td> ! <td></td> ! <td><input id="rot13" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="rot13Result" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.rpad()</td> ! <td><input id="rpad1" name="input" type="text" size="5"/> ! <input id="rpad2" name="input" type="text" size="5"/></td> ! <td><input id="rpad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="rpadResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.rtrim()</td> ! <td></td> ! <td><input id="rtrim" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="rtrimResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.trim()</td> ! <td><input id="trim1" name="input" type="text" size="5"/></td> ! <td><input id="trim" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="trimResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.ucFirst()</td> ! <td></td> ! <td><input id="ucFirst" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="ucFirstResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.ucWords()</td> ! <td></td> ! <td><input id="ucWords" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="ucWordsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>String.wordWrap()</td> ! <td><input id="wordWrap1" name="input" type="text" size="5"/> ! <input id="wordWrap2" name="input" type="text" size="5"/> ! <input id="wordWrap3" name="input" type="text" size="5"/></td> ! <td><input id="wordWrap" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')"/></td> ! <td><input id="wordWrapResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> --- 24,179 ---- * +-------------------------------------------------------------------------+ * $Id$ --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - String</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../string.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oDebug = new Debug(); ! var oTest = new Test(); ! </script> ! </head> ! <body> ! <table> ! <tbody> ! <tr> ! <td colspan="4"><input id="inputString" name="inputString" type="text" size="50" /></td> ! </tr> ! <tr> ! <td>String.addSlashes()</td> ! <td> </td> ! <td><input id="addSlashes" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="addSlashesResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.count()</td> ! <td> </td> ! <td><input id="count" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="countResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.htmlEntities()</td> ! <td> </td> ! <td><input id="htmlEntities" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="htmlEntitiesResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.htmlSpecialChars()</td> ! <td> </td> ! <td><input id="htmlSpecialChars" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="htmlSpecialCharsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.isEmailAddress()</td> ! <td> </td> ! <td><input id="isEmailAddress" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="isEmailAddressResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.levenshtein()</td> ! <td><input id="levenshtein1" name="input" type="text" size="5" /></td> ! <td><input id="levenshtein" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="levenshteinResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.lpad()</td> ! <td> ! <input id="lpad1" name="input" type="text" size="5" /> ! <input id="lpad2" name="input" type="text" size="5" /> ! </td> ! <td><input id="lpad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="lpadResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.ltrim()</td> ! <td> </td> ! <td><input id="ltrim" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="ltrimResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.nl2br()</td> ! <td><input id="nl2br1" name="input" type="text" size="5" /></td> ! <td><input id="nl2br" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="nl2brResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.pad()</td> ! <td> ! <input id="pad1" name="input" type="text" size="5" /> ! <input id="pad2" name="input" type="text" size="5" /> ! <input id="pad3" name="input" type="text" size="5" /> ! </td> ! <td><input id="pad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="padResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.repeat()</td> ! <td><input id="repeat1" name="input" type="text" size="5" /></td> ! <td><input id="repeat" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="repeatResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.reverse()</td> ! <td> ! <input id="reverse1" name="input" type="text" size="5" /> ! <input id="reverse2" name="input" type="text" size="5" /> ! </td> ! <td><input id="reverse" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="reverseResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.rot13()</td> ! <td> </td> ! <td><input id="rot13" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="rot13Result" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.rpad()</td> ! <td> ! <input id="rpad1" name="input" type="text" size="5" /> ! <input id="rpad2" name="input" type="text" size="5" /> ! </td> ! <td><input id="rpad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="rpadResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.rtrim()</td> ! <td> </td> ! <td><input id="rtrim" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="rtrimResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.trim()</td> ! <td><input id="trim1" name="input" type="text" size="5" /></td> ! <td><input id="trim" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="trimResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.ucFirst()</td> ! <td> </td> ! <td><input id="ucFirst" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="ucFirstResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.ucWords()</td> ! <td> </td> ! <td><input id="ucWords" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="ucWordsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>String.wordWrap()</td> ! <td> ! <input id="wordWrap1" name="input" type="text" size="5" /> ! <input id="wordWrap2" name="input" type="text" size="5" /> ! <input id="wordWrap3" name="input" type="text" size="5" /> ! </td> ! <td><input id="wordWrap" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> ! <td><input id="wordWrapResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> \ No newline at end of file |
|
From: <gat...@us...> - 2003-09-14 08:16:49
|
Update of /cvsroot/jspro/jsPro/docs In directory sc8-pr-cvs1:/tmp/cvs-serv26816/docs Modified Files: math.html Log Message: renamed debug --> oDebug; slight reformatting Index: math.html =================================================================== RCS file: /cvsroot/jspro/jsPro/docs/math.html,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** math.html 12 Sep 2003 14:19:46 -0000 1.7 --- math.html 14 Sep 2003 08:16:38 -0000 1.8 *************** *** 24,405 **** * +-------------------------------------------------------------------------+ * $Id$ - * --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Math</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../math.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var debug = new Debug(); ! var oTest = new Test(); ! </script> ! </head> ! <body> ! ! <table> ! <tbody> ! <tr> ! <td>Math.acosh()</td> ! <td><input id="acosh1" name="input" type="text" size="5"/></td> ! <td><input id="acosh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="acoshResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.acot()</td> ! <td><input id="acot1" name="input" type="text" size="5"/></td> ! <td><input id="acot" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="acotResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.acoth()</td> ! <td><input id="acoth1" name="input" type="text" size="5"/></td> ! <td><input id="acoth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="acothResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.acsc()</td> ! <td><input id="acsc1" name="input" type="text" size="5"/></td> ! <td><input id="acsc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="acscResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.acsch()</td> ! <td><input id="acsch1" name="input" type="text" size="5"/></td> ! <td><input id="acsch" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="acschResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.asec()</td> ! <td><input id="asec1" name="input" type="text" size="5"/></td> ! <td><input id="asec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="asecResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.asech()</td> ! <td><input id="asech1" name="input" type="text" size="5"/></td> ! <td><input id="asech" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="asechResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.asinh()</td> ! <td><input id="asinh1" name="input" type="text" size="5"/></td> ! <td><input id="asinh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="asinhResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.atanh()</td> ! <td><input id="atanh1" name="input" type="text" size="5"/></td> ! <td><input id="atanh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="atanhResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.baseConvert()</td> ! <td><input id="baseConvert1" name="input" type="text" size="5"/> ! <input id="baseConvert2" name="input" type="text" size="5"/> ! <input id="baseConvert3" name="input" type="text" size="5"/></td> ! <td><input id="baseConvert" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="baseConvertResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.bin2dec()</td> ! <td><input id="bin2dec1" name="input" type="text" size="5"/></td> ! <td><input id="bin2dec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="bin2decResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.bin2hex()</td> ! <td><input id="bin2hex1" name="input" type="text" size="5"/></td> ! <td><input id="bin2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="bin2hexResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.bin2oct()</td> ! <td><input id="bin2oct1" name="input" type="text" size="5"/></td> ! <td><input id="bin2oct" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="bin2octResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.cosh()</td> ! <td><input id="cosh1" name="input" type="text" size="5"/></td> ! <td><input id="cosh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="coshResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.cot()</td> ! <td><input id="cot1" name="input" type="text" size="5"/></td> ! <td><input id="cot" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="cotResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.coth()</td> ! <td><input id="coth1" name="input" type="text" size="5"/></td> ! <td><input id="coth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="cothResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.cov()</td> ! <td><input id="cov1" name="input" type="text" size="5"/></td> ! <td><input id="cov" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="covResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.csc()</td> ! <td><input id="csc1" name="input" type="text" size="5"/></td> ! <td><input id="csc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="cscResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.csch()</td> ! <td><input id="csch1" name="input" type="text" size="5"/></td> ! <td><input id="csch" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="cschResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.dec2bin()</td> ! <td><input id="dec2bin1" name="input" type="text" size="5"/></td> ! <td><input id="dec2bin" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="dec2binResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.dec2hex()</td> ! <td><input id="dec2hex1" name="input" type="text" size="5"/></td> ! <td><input id="dec2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="dec2hexResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.dec2oct()</td> ! <td><input id="dec2oct1" name="input" type="text" size="5"/></td> ! <td><input id="dec2oct" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="dec2octResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.deg2grad()</td> ! <td><input id="deg2grad1" name="input" type="text" size="5"/></td> ! <td><input id="deg2grad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="deg2gradResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.deg2rad()</td> ! <td><input id="deg2rad1" name="input" type="text" size="5"/></td> ! <td><input id="deg2rad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="deg2radResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.expm1()</td> ! <td><input id="expm11" name="input" type="text" size="5"/></td> ! <td><input id="expm1" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="expm1Result" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.exsec()</td> ! <td><input id="exsec1" name="input" type="text" size="5"/></td> ! <td><input id="exsec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="exsecResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.fibonacci()</td> ! <td><input id="fibonacci1" name="input" type="text" size="5"/></td> ! <td><input id="fibonacci" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="fibonacciResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.fmod()</td> ! <td><input id="fmod1" name="input" type="text" size="5"/> ! <input id="fmod2" name="input" type="text" size="5"/></td> ! <td><input id="fmod" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="fmodResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.gd()</td> ! <td><input id="gd1" name="input" type="text" size="5"/></td> ! <td><input id="gd" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="gdResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.grad2deg()</td> ! <td><input id="grad2deg1" name="input" type="text" size="5"/></td> ! <td><input id="grad2deg" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="grad2degResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.grad2rad()</td> ! <td><input id="grad2rad1" name="input" type="text" size="5"/></td> ! <td><input id="grad2rad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="grad2radResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.hav()</td> ! <td><input id="hav1" name="input" type="text" size="5"/></td> ! <td><input id="hav" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="havResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.hex2bin()</td> ! <td><input id="hex2bin1" name="input" type="text" size="5"/></td> ! <td><input id="hex2bin" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="hex2binResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.hex2dec()</td> ! <td><input id="hex2dec1" name="input" type="text" size="5"/></td> ! <td><input id="hex2dec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="hex2decResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.hex2oct()</td> ! <td><input id="hex2oct1" name="input" type="text" size="5"/></td> ! <td><input id="hex2oct" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="hex2octResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.hypot()</td> ! <td><input id="hypot1" name="input" type="text" size="5"/> ! <input id="hypot2" name="input" type="text" size="5"/></td> ! <td><input id="hypot" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="hypotResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.isEven()</td> ! <td><input id="isEven1" name="input" type="text" size="5"/></td> ! <td><input id="isEven" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="isEvenResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.isOdd()</td> ! <td><input id="isOdd1" name="input" type="text" size="5"/></td> ! <td><input id="isOdd" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="isOddResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.isPrime()</td> ! <td><input id="isPrime1" name="input" type="text" size="5"/></td> ! <td><input id="isPrime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="isPrimeResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.log10()</td> ! <td><input id="log101" name="input" type="text" size="5"/></td> ! <td><input id="log10" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="log10Result" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.log2()</td> ! <td><input id="log21" name="input" type="text" size="5"/></td> ! <td><input id="log2" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="log2Result" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.log1p()</td> ! <td><input id="log1p1" name="input" type="text" size="5"/></td> ! <td><input id="log1p" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="log1pResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.luhn()</td> ! <td><input id="luhn1" name="input" type="text" size="5"/></td> ! <td><input id="luhn" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="luhnResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.oct2bin()</td> ! <td><input id="oct2bin1" name="input" type="text" size="5"/></td> ! <td><input id="oct2bin" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="oct2binResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.oct2dec()</td> ! <td><input id="oct2dec1" name="input" type="text" size="5"/></td> ! <td><input id="oct2dec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="oct2decResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.oct2hex()</td> ! <td><input id="oct2hex1" name="input" type="text" size="5"/></td> ! <td><input id="oct2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="oct2hexResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.pi()</td> ! <td><input id="pi1" name="input" type="text" size="5"/></td> ! <td><input id="pi" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="piResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.rad2deg()</td> ! <td><input id="rad2deg1" name="input" type="text" size="5"/></td> ! <td><input id="rad2deg" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="rad2degResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.rad2grad()</td> ! <td><input id="rad2grad1" name="input" type="text" size="5"/></td> ! <td><input id="rad2grad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="rad2gradResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sec()</td> ! <td><input id="sec1" name="input" type="text" size="5"/></td> ! <td><input id="sec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="secResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sech()</td> ! <td><input id="sech1" name="input" type="text" size="5"/></td> ! <td><input id="sech" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="sechResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sigmoid()</td> ! <td><input id="sigmoid1" name="input" type="text" size="5"/></td> ! <td><input id="sigmoid" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="sigmoidResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sign()</td> ! <td><input id="sign1" name="input" type="text" size="5"/></td> ! <td><input id="sign" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="signResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sinc()</td> ! <td><input id="sinc1" name="input" type="text" size="5"/></td> ! <td><input id="sinc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="sincResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sinh()</td> ! <td><input id="sinh1" name="input" type="text" size="5"/></td> ! <td><input id="sinh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="sinhResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.sq()</td> ! <td><input id="sq1" name="input" type="text" size="5"/></td> ! <td><input id="sq" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="sqResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.tanc()</td> ! <td><input id="tanc1" name="input" type="text" size="5"/></td> ! <td><input id="tanc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="tancResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.tanh()</td> ! <td><input id="tanh1" name="input" type="text" size="5"/></td> ! <td><input id="tanh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="tanhResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Math.vers()</td> ! <td><input id="vers1" name="input" type="text" size="5"/></td> ! <td><input id="vers" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td> ! <td><input id="versResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> --- 24,409 ---- * +-------------------------------------------------------------------------+ * $Id$ --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Math</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../math.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oDebug = new Debug(); ! var oTest = new Test(); ! </script> ! </head> ! <body> ! <table> ! <tbody> ! <tr> ! <td>Math.acosh()</td> ! <td><input id="acosh1" name="input" type="text" size="5" /></td> ! <td><input id="acosh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="acoshResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.acot()</td> ! <td><input id="acot1" name="input" type="text" size="5" /></td> ! <td><input id="acot" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="acotResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.acoth()</td> ! <td><input id="acoth1" name="input" type="text" size="5" /></td> ! <td><input id="acoth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="acothResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.acsc()</td> ! <td><input id="acsc1" name="input" type="text" size="5" /></td> ! <td><input id="acsc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="acscResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.acsch()</td> ! <td><input id="acsch1" name="input" type="text" size="5" /></td> ! <td><input id="acsch" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="acschResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.asec()</td> ! <td><input id="asec1" name="input" type="text" size="5" /></td> ! <td><input id="asec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="asecResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.asech()</td> ! <td><input id="asech1" name="input" type="text" size="5" /></td> ! <td><input id="asech" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="asechResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.asinh()</td> ! <td><input id="asinh1" name="input" type="text" size="5" /></td> ! <td><input id="asinh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="asinhResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.atanh()</td> ! <td><input id="atanh1" name="input" type="text" size="5" /></td> ! <td><input id="atanh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="atanhResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.baseConvert()</td> ! <td> ! <input id="baseConvert1" name="input" type="text" size="5" /> ! <input id="baseConvert2" name="input" type="text" size="5" /> ! <input id="baseConvert3" name="input" type="text" size="5" /> ! </td> ! <td><input id="baseConvert" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="baseConvertResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.bin2dec()</td> ! <td><input id="bin2dec1" name="input" type="text" size="5" /></td> ! <td><input id="bin2dec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="bin2decResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.bin2hex()</td> ! <td><input id="bin2hex1" name="input" type="text" size="5" /></td> ! <td><input id="bin2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="bin2hexResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.bin2oct()</td> ! <td><input id="bin2oct1" name="input" type="text" size="5" /></td> ! <td><input id="bin2oct" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="bin2octResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.cosh()</td> ! <td><input id="cosh1" name="input" type="text" size="5" /></td> ! <td><input id="cosh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="coshResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.cot()</td> ! <td><input id="cot1" name="input" type="text" size="5" /></td> ! <td><input id="cot" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="cotResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.coth()</td> ! <td><input id="coth1" name="input" type="text" size="5" /></td> ! <td><input id="coth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="cothResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.cov()</td> ! <td><input id="cov1" name="input" type="text" size="5" /></td> ! <td><input id="cov" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="covResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.csc()</td> ! <td><input id="csc1" name="input" type="text" size="5" /></td> ! <td><input id="csc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="cscResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.csch()</td> ! <td><input id="csch1" name="input" type="text" size="5" /></td> ! <td><input id="csch" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="cschResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.dec2bin()</td> ! <td><input id="dec2bin1" name="input" type="text" size="5" /></td> ! <td><input id="dec2bin" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="dec2binResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.dec2hex()</td> ! <td><input id="dec2hex1" name="input" type="text" size="5" /></td> ! <td><input id="dec2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="dec2hexResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.dec2oct()</td> ! <td><input id="dec2oct1" name="input" type="text" size="5" /></td> ! <td><input id="dec2oct" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="dec2octResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.deg2grad()</td> ! <td><input id="deg2grad1" name="input" type="text" size="5" /></td> ! <td><input id="deg2grad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="deg2gradResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.deg2rad()</td> ! <td><input id="deg2rad1" name="input" type="text" size="5" /></td> ! <td><input id="deg2rad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="deg2radResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.expm1()</td> ! <td><input id="expm11" name="input" type="text" size="5" /></td> ! <td><input id="expm1" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="expm1Result" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.exsec()</td> ! <td><input id="exsec1" name="input" type="text" size="5" /></td> ! <td><input id="exsec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="exsecResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.fibonacci()</td> ! <td><input id="fibonacci1" name="input" type="text" size="5" /></td> ! <td><input id="fibonacci" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="fibonacciResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.fmod()</td> ! <td> ! <input id="fmod1" name="input" type="text" size="5" /> ! <input id="fmod2" name="input" type="text" size="5" /> ! </td> ! <td><input id="fmod" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="fmodResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.gd()</td> ! <td><input id="gd1" name="input" type="text" size="5" /></td> ! <td><input id="gd" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="gdResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.grad2deg()</td> ! <td><input id="grad2deg1" name="input" type="text" size="5" /></td> ! <td><input id="grad2deg" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="grad2degResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.grad2rad()</td> ! <td><input id="grad2rad1" name="input" type="text" size="5" /></td> ! <td><input id="grad2rad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="grad2radResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.hav()</td> ! <td><input id="hav1" name="input" type="text" size="5" /></td> ! <td><input id="hav" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="havResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.hex2bin()</td> ! <td><input id="hex2bin1" name="input" type="text" size="5" /></td> ! <td><input id="hex2bin" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="hex2binResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.hex2dec()</td> ! <td><input id="hex2dec1" name="input" type="text" size="5" /></td> ! <td><input id="hex2dec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="hex2decResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.hex2oct()</td> ! <td><input id="hex2oct1" name="input" type="text" size="5" /></td> ! <td><input id="hex2oct" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="hex2octResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.hypot()</td> ! <td> ! <input id="hypot1" name="input" type="text" size="5" /> ! <input id="hypot2" name="input" type="text" size="5" /> ! </td> ! <td><input id="hypot" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="hypotResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.isEven()</td> ! <td><input id="isEven1" name="input" type="text" size="5" /></td> ! <td><input id="isEven" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="isEvenResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.isOdd()</td> ! <td><input id="isOdd1" name="input" type="text" size="5" /></td> ! <td><input id="isOdd" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="isOddResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.isPrime()</td> ! <td><input id="isPrime1" name="input" type="text" size="5" /></td> ! <td><input id="isPrime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="isPrimeResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.log10()</td> ! <td><input id="log101" name="input" type="text" size="5" /></td> ! <td><input id="log10" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="log10Result" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.log2()</td> ! <td><input id="log21" name="input" type="text" size="5" /></td> ! <td><input id="log2" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="log2Result" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.log1p()</td> ! <td><input id="log1p1" name="input" type="text" size="5" /></td> ! <td><input id="log1p" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="log1pResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.luhn()</td> ! <td><input id="luhn1" name="input" type="text" size="5" /></td> ! <td><input id="luhn" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="luhnResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.oct2bin()</td> ! <td><input id="oct2bin1" name="input" type="text" size="5" /></td> ! <td><input id="oct2bin" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="oct2binResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.oct2dec()</td> ! <td><input id="oct2dec1" name="input" type="text" size="5" /></td> ! <td><input id="oct2dec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="oct2decResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.oct2hex()</td> ! <td><input id="oct2hex1" name="input" type="text" size="5" /></td> ! <td><input id="oct2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="oct2hexResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.pi()</td> ! <td><input id="pi1" name="input" type="text" size="5" /></td> ! <td><input id="pi" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="piResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.rad2deg()</td> ! <td><input id="rad2deg1" name="input" type="text" size="5" /></td> ! <td><input id="rad2deg" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="rad2degResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.rad2grad()</td> ! <td><input id="rad2grad1" name="input" type="text" size="5" /></td> ! <td><input id="rad2grad" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="rad2gradResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sec()</td> ! <td><input id="sec1" name="input" type="text" size="5" /></td> ! <td><input id="sec" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="secResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sech()</td> ! <td><input id="sech1" name="input" type="text" size="5" /></td> ! <td><input id="sech" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="sechResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sigmoid()</td> ! <td><input id="sigmoid1" name="input" type="text" size="5" /></td> ! <td><input id="sigmoid" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="sigmoidResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sign()</td> ! <td><input id="sign1" name="input" type="text" size="5" /></td> ! <td><input id="sign" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="signResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sinc()</td> ! <td><input id="sinc1" name="input" type="text" size="5" /></td> ! <td><input id="sinc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="sincResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sinh()</td> ! <td><input id="sinh1" name="input" type="text" size="5" /></td> ! <td><input id="sinh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="sinhResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.sq()</td> ! <td><input id="sq1" name="input" type="text" size="5" /></td> ! <td><input id="sq" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="sqResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.tanc()</td> ! <td><input id="tanc1" name="input" type="text" size="5" /></td> ! <td><input id="tanc" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="tancResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.tanh()</td> ! <td><input id="tanh1" name="input" type="text" size="5" /></td> ! <td><input id="tanh" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="tanhResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Math.vers()</td> ! <td><input id="vers1" name="input" type="text" size="5" /></td> ! <td><input id="vers" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')" /></td> ! <td><input id="versResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> \ No newline at end of file |
|
From: <gat...@us...> - 2003-09-14 08:11:07
|
Update of /cvsroot/jspro/jsPro/docs In directory sc8-pr-cvs1:/tmp/cvs-serv25987/docs Modified Files: date.html Log Message: added oDebug; slight reformatting Index: date.html =================================================================== RCS file: /cvsroot/jspro/jsPro/docs/date.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** date.html 6 Sep 2003 01:45:36 -0000 1.3 --- date.html 14 Sep 2003 08:11:04 -0000 1.4 *************** *** 24,215 **** * +-------------------------------------------------------------------------+ * $Id$ - * --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Date</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../date.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! var oDate = new Date(); ! </script> ! </head> ! <body> ! ! <table> ! <tbody> ! <tr> ! <td>Date.formatDate()</td> ! <td><input id="formatDate1" name="input" type="text" size="5"/></td> ! <td><input id="formatDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="formatDateResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getDayOfYear()</td> ! <td></td> ! <td><input id="getDayOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getDayOfYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getDaysInMonth()</td> ! <td></td> ! <td><input id="getDaysInMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getDaysInMonthResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getGMTOffset()</td> ! <td></td> ! <td><input id="getGMTOffset" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getGMTOffsetResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLong12Hours()</td> ! <td></td> ! <td><input id="getLong12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLong12HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLong24Hours()</td> ! <td></td> ! <td><input id="getLong24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLong24HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongDate()</td> ! <td></td> ! <td><input id="getLongDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongDateResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongDayName()</td> ! <td></td> ! <td><input id="getLongDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongDayNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongMinutes()</td> ! <td></td> ! <td><input id="getLongMinutes" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongMinutesResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongMonth()</td> ! <td></td> ! <td><input id="getLongMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongMonthResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongMonthName()</td> ! <td></td> ! <td><input id="getLongMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongMonthNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getLongSeconds()</td> ! <td></td> ! <td><input id="getLongSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getLongSecondsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getMeridiem()</td> ! <td></td> ! <td><input id="getMeridiem" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getMeridiemResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getOrdinalSuffix()</td> ! <td></td> ! <td><input id="getOrdinalSuffix" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getOrdinalSuffixResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getRFC822Date()</td> ! <td></td> ! <td><input id="getRFC822Date" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getRFC822DateResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShort12Hours()</td> ! <td></td> ! <td><input id="getShort12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShort12HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShort24Hours()</td> ! <td></td> ! <td><input id="getShort24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShort24HoursResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortDayName()</td> ! <td></td> ! <td><input id="getShortDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortDayNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortMonth()</td> ! <td></td> ! <td><input id="getShortMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortMonthResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortMonthName()</td> ! <td></td> ! <td><input id="getShortMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortMonthNameResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getShortYear()</td> ! <td></td> ! <td><input id="getShortYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getShortYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getSwatchTime()</td> ! <td></td> ! <td><input id="getSwatchTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getSwatchTimeResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getTimeSeconds()</td> ! <td></td> ! <td><input id="getTimeSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getTimeSecondsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getTimezone()</td> ! <td></td> ! <td><input id="getTimezone" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getTimezoneResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getTimezoneOffsetSeconds()</td> ! <td></td> ! <td><input id="getTimezoneOffsetSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getTimezoneOffsetSecondsResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.getWeekOfYear()</td> ! <td></td> ! <td><input id="getWeekOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="getWeekOfYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.isDaylightSavingsTime()</td> ! <td></td> ! <td><input id="isDaylightSavingsTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="isDaylightSavingsTimeResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Date.isLeapYear()</td> ! <td></td> ! <td><input id="isLeapYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')"/></td> ! <td><input id="isLeapYearResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> --- 24,214 ---- * +-------------------------------------------------------------------------+ * $Id$ --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Date</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../date.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! var oDebug = new Debug(); ! var oDate = new Date(); ! </script> ! </head> ! <body> ! <table> ! <tbody> ! <tr> ! <td>Date.formatDate()</td> ! <td><input id="formatDate1" name="input" type="text" size="5" /></td> ! <td><input id="formatDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="formatDateResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getDayOfYear()</td> ! <td> </td> ! <td><input id="getDayOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getDayOfYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getDaysInMonth()</td> ! <td> </td> ! <td><input id="getDaysInMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getDaysInMonthResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getGMTOffset()</td> ! <td> </td> ! <td><input id="getGMTOffset" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getGMTOffsetResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLong12Hours()</td> ! <td> </td> ! <td><input id="getLong12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLong12HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLong24Hours()</td> ! <td> </td> ! <td><input id="getLong24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLong24HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongDate()</td> ! <td> </td> ! <td><input id="getLongDate" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongDateResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongDayName()</td> ! <td> </td> ! <td><input id="getLongDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongDayNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongMinutes()</td> ! <td> </td> ! <td><input id="getLongMinutes" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongMinutesResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongMonth()</td> ! <td> </td> ! <td><input id="getLongMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongMonthResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongMonthName()</td> ! <td> </td> ! <td><input id="getLongMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongMonthNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getLongSeconds()</td> ! <td> </td> ! <td><input id="getLongSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getLongSecondsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getMeridiem()</td> ! <td> </td> ! <td><input id="getMeridiem" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getMeridiemResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getOrdinalSuffix()</td> ! <td> </td> ! <td><input id="getOrdinalSuffix" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getOrdinalSuffixResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getRFC822Date()</td> ! <td> </td> ! <td><input id="getRFC822Date" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getRFC822DateResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShort12Hours()</td> ! <td> </td> ! <td><input id="getShort12Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShort12HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShort24Hours()</td> ! <td> </td> ! <td><input id="getShort24Hours" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShort24HoursResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortDayName()</td> ! <td> </td> ! <td><input id="getShortDayName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortDayNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortMonth()</td> ! <td> </td> ! <td><input id="getShortMonth" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortMonthResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortMonthName()</td> ! <td> </td> ! <td><input id="getShortMonthName" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortMonthNameResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getShortYear()</td> ! <td> </td> ! <td><input id="getShortYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getShortYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getSwatchTime()</td> ! <td> </td> ! <td><input id="getSwatchTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getSwatchTimeResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getTimeSeconds()</td> ! <td> </td> ! <td><input id="getTimeSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getTimeSecondsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getTimezone()</td> ! <td> </td> ! <td><input id="getTimezone" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getTimezoneResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getTimezoneOffsetSeconds()</td> ! <td> </td> ! <td><input id="getTimezoneOffsetSeconds" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getTimezoneOffsetSecondsResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.getWeekOfYear()</td> ! <td> </td> ! <td><input id="getWeekOfYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="getWeekOfYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.isDaylightSavingsTime()</td> ! <td> </td> ! <td><input id="isDaylightSavingsTime" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="isDaylightSavingsTimeResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Date.isLeapYear()</td> ! <td> </td> ! <td><input id="isLeapYear" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'oDate')" /></td> ! <td><input id="isLeapYearResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> \ No newline at end of file |
|
From: <gat...@us...> - 2003-09-14 08:05:40
|
Update of /cvsroot/jspro/jsPro/docs In directory sc8-pr-cvs1:/tmp/cvs-serv24929/docs Modified Files: array.html Log Message: renamed debug --> oDebug; slight reformatting Index: array.html =================================================================== RCS file: /cvsroot/jspro/jsPro/docs/array.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** array.html 12 Sep 2003 14:23:22 -0000 1.3 --- array.html 14 Sep 2003 08:05:37 -0000 1.4 *************** *** 24,157 **** * +-------------------------------------------------------------------------+ * $Id$ - * --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Array</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../array.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! var debug = new Debug(); ! var aSample = new Array(1,2,3,4,5,'a','b','c','d','e'); ! aSample['hello'] = 'hesdllo'; ! </script> ! </head> ! <body> ! ! <table> ! <tbody> ! <tr> ! <td colspan="4"> ! Starting Array = 1,2,3,4,5,'a','b','c','d','e' ! </td> ! </tr> ! <tr> ! <td>Array.changeKeyCase()</td> ! <td><input id="changeKeyCase1" name="input" type="text" size="5"/></td> ! <td><input id="changeKeyCase" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="changeKeyCaseResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.chunk()</td> ! <td><input id="chunk1" name="input" type="text" size="5"/></td> ! <td><input id="chunk" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="chunkResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.count()</td> ! <td></td> ! <td><input id="count" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="countResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.covar()</td> ! <td><input id="covar1" name="input" type="text" size="5"/> ! <input id="covar2" name="input" type="text" size="5"/></td> ! <td><input id="covar" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="covarResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.fill()</td> ! <td><input id="fill1" name="input" type="text" size="5"/> ! <input id="fill2" name="input" type="text" size="5"/> ! <input id="fill3" name="input" type="text" size="5"/></td> ! <td><input id="fill" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="fillResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.max()</td> ! <td><input id="max1" name="input" type="text" size="5"/> ! <input id="max2" name="input" type="text" size="5"/></td> ! <td><input id="max" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="maxResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.mean()</td> ! <td><input id="mean1" name="input" type="text" size="5"/> ! <input id="mean2" name="input" type="text" size="5"/></td> ! <td><input id="mean" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="meanResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.median()</td> ! <td><input id="median1" name="input" type="text" size="5"/> ! <input id="median2" name="input" type="text" size="5"/></td> ! <td><input id="median" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="medianResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.min()</td> ! <td><input id="min1" name="input" type="text" size="5"/> ! <input id="min2" name="input" type="text" size="5"/></td> ! <td><input id="min" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="minResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.product()</td> ! <td><input id="product1" name="input" type="text" size="5"/> ! <input id="product2" name="input" type="text" size="5"/></td> ! <td><input id="product" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="productResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.range()</td> ! <td><input id="range1" name="input" type="text" size="5"/> ! <input id="range2" name="input" type="text" size="5"/></td> ! <td><input id="range" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="rangeResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.stdev()</td> ! <td><input id="stdev1" name="input" type="text" size="5"/> ! <input id="stdev2" name="input" type="text" size="5"/></td> ! <td><input id="stdev" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="stdevResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.sum()</td> ! <td><input id="sum1" name="input" type="text" size="5"/> ! <input id="sum2" name="input" type="text" size="5"/></td> ! <td><input id="sum" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="sumResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.swap()</td> ! <td><input id="swap1" name="input" type="text" size="5"/> ! <input id="swap2" name="input" type="text" size="5"/></td> ! <td><input id="swap" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="swapResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! <tr> ! <td>Array.variance()</td> ! <td><input id="variance1" name="input" type="text" size="5"/> ! <input id="variance2" name="input" type="text" size="5"/></td> ! <td><input id="variance" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td> ! <td><input id="varianceResult" name="output" type="text" size="30" readonly="readonly"/></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> --- 24,177 ---- * +-------------------------------------------------------------------------+ * $Id$ --> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> ! <head> ! <title>jsPro - Array</title> ! <script type="text/javascript" src="../error.js"></script> ! <script type="text/javascript" src="../debug/debug.js"></script> ! <script type="text/javascript" src="../array.js"></script> ! <script type="text/javascript" src="test.js"></script> ! <script type="text/javascript"> ! var oTest = new Test(); ! var oDebug = new Debug(); ! var aSample = new Array(1, 2, 3, 4, 5, 'a', 'b', 'c', 'd', 'e'); ! aSample['hello'] = 'hesdllo'; ! </script> ! </head> ! <body> ! <table> ! <tbody> ! <tr> ! <td colspan="4">Starting Array = [1, 2, 3, 4, 5, 'a', 'b', 'c', 'd', 'e']</td> ! </tr> ! <tr> ! <td>Array.changeKeyCase()</td> ! <td><input id="changeKeyCase1" name="input" type="text" size="5" /></td> ! <td><input id="changeKeyCase" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="changeKeyCaseResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.chunk()</td> ! <td><input id="chunk1" name="input" type="text" size="5" /></td> ! <td><input id="chunk" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="chunkResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.count()</td> ! <td> </td> ! <td><input id="count" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="countResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.covar()</td> ! <td> ! <input id="covar1" name="input" type="text" size="5" /> ! <input id="covar2" name="input" type="text" size="5" /> ! </td> ! <td><input id="covar" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="covarResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.fill()</td> ! <td> ! <input id="fill1" name="input" type="text" size="5" /> ! <input id="fill2" name="input" type="text" size="5" /> ! <input id="fill3" name="input" type="text" size="5" /> ! </td> ! <td><input id="fill" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="fillResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.max()</td> ! <td> ! <input id="max1" name="input" type="text" size="5" /> ! <input id="max2" name="input" type="text" size="5" /> ! </td> ! <td><input id="max" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="maxResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.mean()</td> ! <td> ! <input id="mean1" name="input" type="text" size="5" /> ! <input id="mean2" name="input" type="text" size="5" /> ! </td> ! <td><input id="mean" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="meanResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.median()</td> ! <td> ! <input id="median1" name="input" type="text" size="5" /> ! <input id="median2" name="input" type="text" size="5" /> ! </td> ! <td><input id="median" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="medianResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.min()</td> ! <td> ! <input id="min1" name="input" type="text" size="5" /> ! <input id="min2" name="input" type="text" size="5" /> ! </td> ! <td><input id="min" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="minResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.product()</td> ! <td> ! <input id="product1" name="input" type="text" size="5" /> ! <input id="product2" name="input" type="text" size="5" /> ! </td> ! <td><input id="product" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="productResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.range()</td> ! <td> ! <input id="range1" name="input" type="text" size="5" /> ! <input id="range2" name="input" type="text" size="5" /> ! </td> ! <td><input id="range" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="rangeResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.stdev()</td> ! <td> ! <input id="stdev1" name="input" type="text" size="5" /> ! <input id="stdev2" name="input" type="text" size="5" /> ! </td> ! <td><input id="stdev" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="stdevResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.sum()</td> ! <td> ! <input id="sum1" name="input" type="text" size="5" /> ! <input id="sum2" name="input" type="text" size="5" /> ! </td> ! <td><input id="sum" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="sumResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.swap()</td> ! <td> ! <input id="swap1" name="input" type="text" size="5" /> ! <input id="swap2" name="input" type="text" size="5" /> ! </td> ! <td><input id="swap" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="swapResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! <tr> ! <td>Array.variance()</td> ! <td> ! <input id="variance1" name="input" type="text" size="5" /> ! <input id="variance2" name="input" type="text" size="5" /> ! </td> ! <td><input id="variance" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> ! <td><input id="varianceResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> ! </tbody> ! </table> ! </body> ! </html> \ No newline at end of file |
|
From: <wi...@us...> - 2003-09-12 14:30:45
|
Update of /cvsroot/jspro/jsPro In directory sc8-pr-cvs1:/tmp/cvs-serv29093 Modified Files: README Log Message: no message Index: README =================================================================== RCS file: /cvsroot/jspro/jsPro/README,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** README 11 Sep 2003 13:30:36 -0000 1.20 --- README 12 Sep 2003 14:30:41 -0000 1.21 *************** *** 26,29 **** --- 26,30 ---- array.js ------------------------------------------------------------------------------- + Array.prototype.changeKeyCase(): change key case Array.prototype.chunk(): split into chunks Array.prototype.count(): count occurrence of values *************** *** 137,140 **** --- 138,142 ---- Math.oct2dec(): octal to decimal conversion Math.oct2hex(): octal to hexadecimal conversion + Math.pi(): calculate pi Math.rad2deg(): radian to degree conversion Math.rad2grad(): radian to gradian conversion *************** *** 178,181 **** ! This file was generated automatically: Thu Sep 11 14:30:02 2003 --- 180,183 ---- ! This file was generated automatically: Fri Sep 12 15:32:03 2003 |
|
From: <wi...@us...> - 2003-09-12 14:23:25
|
Update of /cvsroot/jspro/jsPro/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv27684
Modified Files:
array.html
Log Message:
- new keyChangeCase method
Index: array.html
===================================================================
RCS file: /cvsroot/jspro/jsPro/docs/array.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** array.html 6 Sep 2003 01:43:47 -0000 1.2
--- array.html 12 Sep 2003 14:23:22 -0000 1.3
***************
*** 35,39 ****
--- 35,41 ----
<script type="text/javascript">
var oTest = new Test();
+ var debug = new Debug();
var aSample = new Array(1,2,3,4,5,'a','b','c','d','e');
+ aSample['hello'] = 'hesdllo';
</script>
</head>
***************
*** 46,49 ****
--- 48,57 ----
Starting Array = 1,2,3,4,5,'a','b','c','d','e'
</td>
+ </tr>
+ <tr>
+ <td>Array.changeKeyCase()</td>
+ <td><input id="changeKeyCase1" name="input" type="text" size="5"/></td>
+ <td><input id="changeKeyCase" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')"/></td>
+ <td><input id="changeKeyCaseResult" name="output" type="text" size="30" readonly="readonly"/></td>
</tr>
<tr>
|
|
From: <wi...@us...> - 2003-09-12 14:23:06
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv27599
Modified Files:
string.js point.js error.js date.js CHANGES
Log Message:
- addition of @summary comments
Index: string.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/string.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** string.js 12 Aug 2003 13:05:54 -0000 1.13
--- string.js 12 Sep 2003 14:23:02 -0000 1.14
***************
*** 30,33 ****
--- 30,34 ----
* quotes), and reverse solidi (backslashes) in this string with backslashes.
*
+ * @summary escape vertain characters with backslashes
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 76,79 ****
--- 77,81 ----
* number of occurrences of that member's key in this string.
*
+ * @summary count occurence of characters
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 121,124 ****
--- 123,127 ----
* Entity References.
*
+ * @summary encode xhtml entities
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 193,196 ****
--- 196,200 ----
* 4.01 Special Characters Set with their Character Entity References.
*
+ * @summary encode subset of html special characters
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 243,246 ****
--- 247,251 ----
* compliance.
*
+ * @summary is email address?
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 287,290 ****
--- 292,296 ----
* convert a source string into a target string.
*
+ * @summary levenshtein distance
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 362,365 ****
--- 368,372 ----
* number of times.
*
+ * @summary pad left side
* @author Randolph Fielding
* @version 1.0, 08/07/03
***************
*** 426,429 ****
--- 433,437 ----
* Trims whitespace characters from the left side of this string.
*
+ * @summary trim left side
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 476,479 ****
--- 484,488 ----
* with either HTML <BR> elements or XHTML <br /> elements.
*
+ * @summary newline to <br> conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 531,534 ****
--- 540,544 ----
* with another string for a specified number of times.
*
+ * @summary pad
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 606,609 ****
--- 616,620 ----
* Repeats this string a specified number of times.
*
+ * @summary repeat
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 655,658 ****
--- 666,670 ----
* are specified).
*
+ * @summary reverse
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 740,743 ****
--- 752,756 ----
* unchanged.
*
+ * @summary rotate 13 encoding
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 799,802 ****
--- 812,816 ----
* number of times.
*
+ * @summary pad right side
* @author Randolph Fielding
* @version 1.0, 08/07/03
***************
*** 863,866 ****
--- 877,881 ----
* Trims whitespace characters from the right side of this string.
*
+ * @summary trim right side
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 913,916 ****
--- 928,932 ----
* right side of this string.
*
+ * @summary trim
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 967,970 ****
--- 983,987 ----
* Converts the first character of this string to uppercase.
*
+ * @summary uppercase first character
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1004,1007 ****
--- 1021,1025 ----
* Converts the first character of each word in this string to uppercase.
*
+ * @summary uppercase words
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1064,1067 ****
--- 1082,1086 ----
* the wrap if specified.
*
+ * @summary word wrap
* @author Stuart Wigley
* @author Randolph Fielding
Index: point.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/point.js,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** point.js 12 Aug 2003 06:40:29 -0000 1.11
--- point.js 12 Sep 2003 14:23:02 -0000 1.12
***************
*** 32,35 ****
--- 32,36 ----
* optional abscissa and ordinate arguments are specified).
*
+ * @summary distance between two points
* @author Davy Cielen
* @author Randolph Fielding
Index: error.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/error.js,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** error.js 6 Sep 2003 01:50:10 -0000 1.11
--- error.js 12 Sep 2003 14:23:02 -0000 1.12
***************
*** 39,43 ****
* window. An instance of the Debug() class must be available.
*/
! Error.prototype.debugLevel = 3;
--- 39,43 ----
* window. An instance of the Debug() class must be available.
*/
! Error.prototype.debugLevel = 4;
***************
*** 74,78 ****
break;
case 4 :
! var jsProDebugWindow = oDebug;
if (jsProDebugWindow) {
var oDebugWindow = jsProDebugWindow.debugWindow;
--- 74,78 ----
break;
case 4 :
! var jsProDebugWindow = debug;
if (jsProDebugWindow) {
var oDebugWindow = jsProDebugWindow.debugWindow;
Index: date.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/date.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** date.js 26 Aug 2003 06:33:17 -0000 1.5
--- date.js 12 Sep 2003 14:23:02 -0000 1.6
***************
*** 66,69 ****
--- 66,70 ----
* Z - Greenwich Mean Time (GMT) offset in seconds ('-43200' to '43200')
*
+ * @summary format a date
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 351,354 ****
--- 352,356 ----
* string between '1' and '366', inclusive.
*
+ * @summary day of year
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 415,418 ****
--- 417,421 ----
* between '28' and '31', inclusive.
*
+ * @summary days in month
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 479,482 ****
--- 482,486 ----
* four digits representing hours (HH) and minutes (MM).
*
+ * @summary GMT Offset
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 527,530 ****
--- 531,535 ----
* inclusive.
*
+ * @summary two digit hour (01-12)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 573,576 ****
--- 578,582 ----
* inclusive.
*
+ * @summary two digit hour (00-23)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 617,620 ****
--- 623,627 ----
* '01' and '31', inclusive.
*
+ * @summary two digit day of month (01-31)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 660,663 ****
--- 667,671 ----
* Returns the day name for this date (e.g. 'Monday', 'Tuesday', etc.).
*
+ * @summary Day name
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 699,702 ****
--- 707,711 ----
* '59', inclusive.
*
+ * @summary two digit minute (00-59)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 743,746 ****
--- 752,756 ----
* '12', inclusive.
*
+ * @summary two digit month (01-12)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 786,789 ****
--- 796,800 ----
* Returns the month name for this date (e.g. 'January', 'February', etc.).
*
+ * @summary month name
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 825,828 ****
--- 836,840 ----
* '59', inclusive.
*
+ * @summary two digit seconds (00-59)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 869,872 ****
--- 881,885 ----
* (Post Meridiem).
*
+ * @summary meridiem
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 907,910 ****
--- 920,924 ----
* date (i.e. 'st', 'nd', 'rd' or 'th').
*
+ * @summary english ordinal suffix
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 955,958 ****
--- 969,973 ----
* RFC 822 (Standard for the Format of ARPA Internet Text Messages).
*
+ * @summary RFC 822 date
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1043,1046 ****
--- 1058,1062 ----
* and '12', inclusive.
*
+ * @summary one/two digit hour (1-12)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1083,1086 ****
--- 1099,1103 ----
* and '23', inclusive.
*
+ * @summary one/two digit hour (0-23)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1121,1124 ****
--- 1138,1142 ----
* Returns the shortened day name for this date (e.g. 'Mon', 'Tue', etc.).
*
+ * @summary short day name
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1173,1176 ****
--- 1191,1195 ----
* and '12', inclusive.
*
+ * @summary one/two digit month (1-12)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1211,1214 ****
--- 1230,1234 ----
* Returns the shortened month name for this date (e.g. 'Jan', 'Feb', etc.).
*
+ * @summary short month name
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1263,1266 ****
--- 1283,1287 ----
* inclusive.
*
+ * @summary two digit year (00-99)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1303,1306 ****
--- 1324,1328 ----
* information.
*
+ * @summary Swatch internet time
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1351,1354 ****
--- 1373,1377 ----
* 00:00:00 GMT) for this date.
*
+ * @summary seconds since UNIX epoch
* @author Randolph Fielding
* @version 1.0, 08/20/03
***************
*** 1388,1391 ****
--- 1411,1415 ----
* Returns the abbreviation of the name of the local timezone.
*
+ * @summary not implemented
* @author Stuart Wigley
* @version 1.0, 08/07/03
***************
*** 1404,1407 ****
--- 1428,1432 ----
* Returns the Greenwich Mean Time (GMT) offset for this date in seconds.
*
+ * @summary timezone offset in seconds
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1446,1449 ****
--- 1471,1475 ----
* http://personal.ecu.edu/mccartyr/ISOwdALG.txt for more information.
*
+ * @summary week of year
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1530,1533 ****
--- 1556,1560 ----
* Determines if this date falls within Daylight Savings Time.
*
+ * @summary not implemented
* @author Stuart Wigley
* @version 1.0, 08/07/03
***************
*** 1548,1551 ****
--- 1575,1579 ----
* Determines if this date falls within a leap year.
*
+ * @summary is leap year?
* @author Stuart Wigley
* @author Randolph Fielding
Index: CHANGES
===================================================================
RCS file: /cvsroot/jspro/jsPro/CHANGES,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** CHANGES 6 Sep 2003 01:56:11 -0000 1.12
--- CHANGES 12 Sep 2003 14:23:02 -0000 1.13
***************
*** 4,7 ****
--- 4,11 ----
Additions:
+ array.js:
+
+ - Array.changeKeyCase()
+
constants.js:
***************
*** 20,23 ****
--- 24,28 ----
- Math.baseConvert()
- Math.fmod()
+ - Math.pi()
-------------------------------------------------------------------------------
|
|
From: <wi...@us...> - 2003-09-12 14:22:11
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv27295
Modified Files:
array.js
Log Message:
- new keyChangeCase method
- addition of @summary comments
Index: array.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/array.js,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** array.js 12 Aug 2003 13:05:54 -0000 1.22
--- array.js 12 Sep 2003 14:22:08 -0000 1.23
***************
*** 27,33 ****
--- 27,89 ----
/**
+ * Changes the case of array keys to upper or lowercase
+ *
+ * @summary change key case
+ * @author Stuart Wigley
+ * @version 1.0, 09/12/03
+ * @interface <code>Array.changeKeyCase(iCase)</code>
+ * @param iCase an integer representing the case (lowercase: 0;
+ * uppercase: 1;)
+ * @return an array with keys changed to upper or lowercase
+ * @return <code>null</code> if an exception is encountered
+ * @throws IllegalArgumentException
+ * @throws TypeMismatchException
+ */
+ Array.prototype.changeKeyCase = function(iCase) {
+
+ try {
+
+ var vError = null;
+ var iArrayLength = this.length;
+ var iNumArguments = arguments.length;
+
+ if (iNumArguments != 1) {
+ throw vError = new IllegalArgumentException('Array.changeKeyCase', 1, iNumArguments);
+ }
+
+ if ((typeof iCase != 'number') || (parseInt(iCase.toString()) != iCase)) {
+ throw vError = new TypeMismatchException('Array.changeKeyCase', 'number', typeof iCase);
+ }
+
+ for (var sKey in this) {
+ if (this.hasOwnProperty(sKey)) {
+
+ var sKeyCase = (iCase == 1) ? sKey.toUpperCase() : sKey.toLowerCase();
+ if (sKeyCase != sKey) {
+
+ this[sKeyCase] = this[sKey];
+ delete this[sKey];
+ }
+ }
+ }
+ }
+ catch (vError) {
+
+ if (vError instanceof Error) {
+ vError.handleError();
+ }
+ }
+ finally {
+
+ return vError ? null : this;
+ }
+ }
+
+
+ /**
* Returns an array of 'chunks' where each 'chunk' is an array of
* <code>iChunkSize</code> formed from this array.
*
+ * @summary split into chunks
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 90,93 ****
--- 146,150 ----
* of occurrences of that member's key in this array.
*
+ * @summary count occurrence of values
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 135,138 ****
--- 192,196 ----
* specified).
*
+ * @summary coefficient of variation
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 233,236 ****
--- 291,295 ----
* length arguments are specified) with a value of any data type.
*
+ * @summary fill
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 313,316 ****
--- 372,376 ----
* of array members (if the optional start and length arguments are specified).
*
+ * @summary maximum value
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 397,400 ****
--- 457,461 ----
* members (if the optional start and length arguments are specified).
*
+ * @summary mean
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 485,488 ****
--- 546,550 ----
* array members (if the optional start and length arguments are specified).
*
+ * @summary median
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 585,588 ****
--- 647,651 ----
* of array members (if the optional start and length arguments are specified).
*
+ * @summary minimum value
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 669,672 ****
--- 732,736 ----
* array members (if the optional start and length arguments are specified).
*
+ * @summary product
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 757,760 ****
--- 821,825 ----
* array members (if the optional start and length arguments are specified).
*
+ * @summary range
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 856,859 ****
--- 921,925 ----
* specified).
*
+ * @summary standard deviation
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 947,950 ****
--- 1013,1017 ----
* members (if the optional start and length arguments are specified).
*
+ * @summary sum
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1034,1037 ****
--- 1101,1105 ----
* Swaps the values of two array members at the specified indices.
*
+ * @summary swap two members
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1096,1099 ****
--- 1164,1168 ----
* specified).
*
+ * @summary unbiased variance
* @author Stuart Wigley
* @author Randolph Fielding
|
|
From: <wi...@us...> - 2003-09-12 14:20:43
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv26969
Modified Files:
math.js
Log Message:
- new pi calculation method
- addition of @summary comment
Index: math.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/math.js,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** math.js 3 Sep 2003 23:06:31 -0000 1.20
--- math.js 12 Sep 2003 14:20:37 -0000 1.21
***************
*** 30,33 ****
--- 30,34 ----
* Cartesian space.
*
+ * @summary inverse hyperbolic cosine
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 75,78 ****
--- 76,80 ----
* space.
*
+ * @summary inverse cotangent
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 119,122 ****
--- 121,125 ----
* Cartesian space.
*
+ * @summary inverse hyperbolic cotangent
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 165,168 ****
--- 168,172 ----
* space.
*
+ * @summary inverse cosecant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 211,214 ****
--- 215,219 ----
* Cartesian space.
*
+ * @summary inverse hyperbolic cosecant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 255,258 ****
--- 260,264 ----
* space.
*
+ * @summary inverse secant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 301,304 ****
--- 307,311 ----
* Cartesian space.
*
+ * @summary inverse hyperbolic secant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 347,350 ****
--- 354,358 ----
* Cartesian space.
*
+ * @summary inverse hyperbolic sine
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 391,394 ****
--- 399,403 ----
* Cartesian space.
*
+ * @summary inverse hyperbolic tangent
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 436,439 ****
--- 445,449 ----
* Converts a number from one base to another base.
*
+ * @summary convert base
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 491,494 ****
--- 501,505 ----
* Converts a binary number into its decimal equivalent.
*
+ * @summary binary to decimal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 534,537 ****
--- 545,549 ----
* Converts a binary number into its hexadecimal equivalent.
*
+ * @summary binary to hexadecimal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 577,580 ****
--- 589,593 ----
* Converts a binary number into its octal equivalent.
*
+ * @summary binary to octal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 621,624 ****
--- 634,638 ----
* space.
*
+ * @summary hyperbolic cosine
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 664,667 ****
--- 678,682 ----
* Calculates and returns the cotangent of a number in 2D Cartesian space.
*
+ * @summary cotangent
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 708,711 ****
--- 723,727 ----
* space.
*
+ * @summary hyperbolic cotangent
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 751,754 ****
--- 767,771 ----
* Calculates and returns the coversine of a number in 2D Cartesian space.
*
+ * @summary coversine
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 794,797 ****
--- 811,815 ----
* Calculates and returns the cosecant of a number in 2D Cartesian space.
*
+ * @summary cosecant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 838,841 ****
--- 856,860 ----
* space.
*
+ * @summary hyperbolic cosecant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 881,884 ****
--- 900,904 ----
* Converts a decimal number into its binary equivalent.
*
+ * @summary decimal to binary conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 924,927 ****
--- 944,948 ----
* Converts a decimal number into its hexadecimal equivalent.
*
+ * @summary decimal to hexadecimal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 967,970 ****
--- 988,992 ----
* Converts a decimal number into its octal equivalent.
*
+ * @summary decimal to octal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1010,1013 ****
--- 1032,1036 ----
* Converts an angle in degrees into its equivalent in gradians.
*
+ * @summary degree to gradian conversion
* @author Randolph Fielding
* @author Stuart Wigley
***************
*** 1053,1056 ****
--- 1076,1080 ----
* Converts an angle in degrees into its equivalent in radians.
*
+ * @summary degree to radian conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1096,1099 ****
--- 1120,1124 ----
* Calculates and returns exp(x) - 1 for a number x.
*
+ * @summary exp(x) - 1
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1139,1142 ****
--- 1164,1168 ----
* Calculates and returns the exsecant of a number in 2D Cartesian space.
*
+ * @summary exsecant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1182,1185 ****
--- 1208,1212 ----
* Calculates and returns the xth term of the Fibonacci sequence.
*
+ * @summary fibonacci sequence
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1227,1230 ****
--- 1254,1258 ----
* by another number.
*
+ * @summary floating point modulus
* @author Stuart Wigley
* @version 1.0, 09/03/03
***************
*** 1277,1280 ****
--- 1305,1309 ----
* space using the Gudermannian function.
*
+ * @summary gudermannian function
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1320,1323 ****
--- 1349,1353 ----
* Converts an angle in gradians into its equivalent in degrees.
*
+ * @summary gradian to degree conversion
* @author Randolph Fielding
* @author Stuart Wigley
***************
*** 1363,1366 ****
--- 1393,1397 ----
* Converts an angle in gradians into its equivalent in radians.
*
+ * @summary gradian to radian conversion
* @author Randolph Fielding
* @author Stuart Wigley
***************
*** 1406,1409 ****
--- 1437,1441 ----
* Calculates and returns the haversine of a number in 2D Cartesian space.
*
+ * @summary haversine
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1449,1452 ****
--- 1481,1485 ----
* Converts a hexadecimal number into its binary equivalent.
*
+ * @summary hexadecimal to binary conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1492,1495 ****
--- 1525,1529 ----
* Converts a hexadecimal number into its decimal equivalent.
*
+ * @summary hexadecimal to decimal converison
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1535,1538 ****
--- 1569,1573 ----
* Converts a hexadecimal number into its octal equivalent.
*
+ * @summary hexadecimal to octal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1579,1582 ****
--- 1614,1618 ----
* (side C) in 2D Cartesian space.
*
+ * @summary hypotenuse
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1628,1631 ****
--- 1664,1668 ----
* Determines if a number is even.
*
+ * @summary is even?
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1672,1675 ****
--- 1709,1713 ----
* Determines if a number is odd.
*
+ * @summary is odd?
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1717,1720 ****
--- 1755,1759 ----
* no positive integer divisors other than 1 and itself).
*
+ * @summary is prime?
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1771,1774 ****
--- 1810,1814 ----
* Calculates and returns the base-10 logarithm of a number.
*
+ * @summary base-10 logarithm
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1815,1818 ****
--- 1855,1859 ----
* Calculates and returns the base-2 logarithm of a number.
*
+ * @summary base-2 logarithm
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1859,1862 ****
--- 1900,1904 ----
* Calculates and returns log(1 + x) for a number x.
*
+ * @summary log(1 + x)
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1903,1906 ****
--- 1945,1949 ----
* Determines if a number is valid according to the LUHN formula.
*
+ * @summary luhn formula
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 1964,1967 ****
--- 2007,2011 ----
* Converts an octal number into its binary equivalent.
*
+ * @summary octal to binary conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2007,2010 ****
--- 2051,2055 ----
* Converts an octal number into its decimal equivalent.
*
+ * @summary octal to decimal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2050,2053 ****
--- 2095,2099 ----
* Converts an octal number into its hexadecimal equivalent.
*
+ * @summary octal to hexadecimal conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2091,2096 ****
--- 2137,2210 ----
/**
+ * Calculates pi using the four two-term Machin-like formulas. The default is
+ * Machin's Formula. The choice of formula can be specified by setting the
+ * <code>sFormula</code> argument as follows:
+ *
+ * 'e' Euler's Machin-like Formula
+ * 'h' Hermann's Formula
+ * 'm' Machin's Formula
+ * 'u' Hutton's Formula
+ *
+ * @summary calculate pi
+ * @author Stuart Wigley
+ * @version 1.0, 09/12/03
+ * @interface <code>Math.pi()</code>
+ * @interface <code>Math.pi(sFormula)</code>
+ * @param sFormula a string representing the choice of formula
+ * @return pi
+ * @return <code>null</code> if an exception is encountered
+ * @throws IllegalArgumentException
+ * @throws MethodNotAvailableException
+ * @throws TypeMismatchException
+ */
+ Math.pi = function() {
+
+ try {
+
+ var vError = null;
+ var iNumArguments = arguments.length;
+ var sFormula
+
+ if (iNumArguments == 0) {
+ sFormula = 's'
+ } else if (iNumArguments == 1) {
+ sFormula = arguments[0];
+ } else {
+ throw vError = new IllegalArgumentException('Math.pi', '0 or 1', iNumArguments);
+ }
+
+ if (typeof sFormula != 'string') {
+ throw vError = new TypeMismatchException('Math.pi', 'string', typeof sFormula);
+ }
+
+ var fPi;
+
+ switch (sFormula) {
+
+ case 'e' : fPi = 4 * (Math.atan(1/2) + Math.atan(1/3)); break;
+ case 'h' : fPi = 4 * ((2 * Math.atan(1/2)) - Math.atan(1/7)); break;
+ case 'u' : fPi = 4 * ((2 * Math.atan(1/3)) + Math.atan(1/7)); break;
+ case 'm' :
+ default : fPi = 4 * ((4 * Math.atan(1/5)) - Math.atan(1/239)); break;
+ }
+
+ }
+ catch (vError) {
+
+ if (vError instanceof Error) {
+ vError.handleError();
+ }
+ }
+ finally {
+
+ return vError ? null : fPi;
+ }
+ }
+
+
+ /**
* Converts an angle in radians into its equivalent in degrees.
*
+ * @summary radian to degree conversion
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2136,2139 ****
--- 2250,2254 ----
* Converts an angle in radians into its equivalent in gradians.
*
+ * @summary radian to gradian conversion
* @author Randolph Fielding
* @author Stuart Wigley
***************
*** 2179,2182 ****
--- 2294,2298 ----
* Calculates and returns the secant of a number in 2D Cartesian space.
*
+ * @summary secant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2223,2226 ****
--- 2339,2343 ----
* space.
*
+ * @summary hyperbolic secant
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2267,2270 ****
--- 2384,2388 ----
* the sigmoid function.
*
+ * @summary sigmoid function
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2310,2313 ****
--- 2428,2432 ----
* Calculates and returns the sign of a number.
*
+ * @summary sign
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2356,2359 ****
--- 2475,2479 ----
* sinc function.
*
+ * @summary sinc function
* @author Randolph Fielding
* @author Stuart Wigley
***************
*** 2400,2403 ****
--- 2520,2524 ----
* space.
*
+ * @summary hyperbolic sine
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2443,2446 ****
--- 2564,2568 ----
* Calculates and returns the square of a number.
*
+ * @summary square
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2487,2490 ****
--- 2609,2613 ----
* tanc function.
*
+ * @summary tanc function
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2531,2534 ****
--- 2654,2658 ----
* space.
*
+ * @summary hyperbolic tangent
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 2574,2577 ****
--- 2698,2702 ----
* Calculates and returns the versine of a number in 2D Cartesian space.
*
+ * @summary versine
* @author Stuart Wigley
* @author Randolph Fielding
|
|
From: <wi...@us...> - 2003-09-12 14:19:49
|
Update of /cvsroot/jspro/jsPro/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv26769
Modified Files:
math.html
Log Message:
new pi calculation method
Index: math.html
===================================================================
RCS file: /cvsroot/jspro/jsPro/docs/math.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** math.html 6 Sep 2003 01:45:56 -0000 1.6
--- math.html 12 Sep 2003 14:19:46 -0000 1.7
***************
*** 34,38 ****
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
! var oDebug = new Debug();
var oTest = new Test();
</script>
--- 34,38 ----
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
! var debug = new Debug();
var oTest = new Test();
</script>
***************
*** 321,324 ****
--- 321,330 ----
<td><input id="oct2hex" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td>
<td><input id="oct2hexResult" name="output" type="text" size="30" readonly="readonly"/></td>
+ </tr>
+ <tr>
+ <td>Math.pi()</td>
+ <td><input id="pi1" name="input" type="text" size="5"/></td>
+ <td><input id="pi" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'Math')"/></td>
+ <td><input id="piResult" name="output" type="text" size="30" readonly="readonly"/></td>
</tr>
<tr>
|
|
From: <wi...@us...> - 2003-09-11 13:34:38
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv31399
Modified Files:
chemica.js
Log Message:
changed methods to be in alphabetical order
Index: chemica.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/chemica.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** chemica.js 12 Aug 2003 06:46:29 -0000 1.6
--- chemica.js 11 Sep 2003 13:34:35 -0000 1.7
***************
*** 41,44 ****
--- 41,45 ----
* Returns the Atomic Number of this chemical element.
*
+ * @summary get Atomic Number
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 56,72 ****
/**
! * Returns the Chemical Symbol of this chemical element.
*
* @author Stuart Wigley
* @author Randolph Fielding
* @version 1.1, 06/30/03
! * @interface <code>Chemica.getSymbol()</code>
* @requires <code>Chemica()</code>
! * @return the Chemical Symbol of this chemical element
* @see <code>Chemica()</code>
*/
! Chemica.prototype.getSymbol = function() {
! return this.SYMBOL;
}
--- 57,74 ----
/**
! * Returns the Atomic Weight of this chemical element.
*
+ * @summary get Atomic Weight
* @author Stuart Wigley
* @author Randolph Fielding
* @version 1.1, 06/30/03
! * @interface <code>Chemica.getAtomicWt()</code>
* @requires <code>Chemica()</code>
! * @return the Atomic Weight of this chemical element
* @see <code>Chemica()</code>
*/
! Chemica.prototype.getAtomicWt = function() {
! return this.ATOMIC_WEIGHT;
}
***************
*** 75,78 ****
--- 77,81 ----
* Returns the Chemical Name of this chemical element.
*
+ * @summary get Name
* @author Stuart Wigley
* @author Randolph Fielding
***************
*** 90,105 ****
/**
! * Returns the Atomic Weight of this chemical element.
*
* @author Stuart Wigley
* @author Randolph Fielding
* @version 1.1, 06/30/03
! * @interface <code>Chemica.getAtomicWt()</code>
* @requires <code>Chemica()</code>
! * @return the Atomic Weight of this chemical element
* @see <code>Chemica()</code>
*/
! Chemica.prototype.getAtomicWt = function() {
! return this.ATOMIC_WEIGHT;
}
--- 93,109 ----
/**
! * Returns the Chemical Symbol of this chemical element.
*
+ * @summary get Symbol
* @author Stuart Wigley
* @author Randolph Fielding
* @version 1.1, 06/30/03
! * @interface <code>Chemica.getSymbol()</code>
* @requires <code>Chemica()</code>
! * @return the Chemical Symbol of this chemical element
* @see <code>Chemica()</code>
*/
! Chemica.prototype.getSymbol = function() {
! return this.SYMBOL;
}
|