ddkilzer | 994f44b | 2007-02-11 02:17:16 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <title>Array parameters Applet</title> |
| 4 | </head> |
| 5 | <body> |
| 6 | <h1>Calling Java Array Test page</h1> |
| 7 | This page calls a Java method which takes Arrays as parameters. On successful calling of the function, the passed in values are printed |
| 8 | to stdout from Java using System.out.println |
| 9 | Send object array should fail, but WebKit should not crash. |
| 10 | <form name="controls"> |
| 11 | <input type="button" name="string" value="Send String array" onClick="document.arraytestapplet.arrayFunction(['one', 'two', 'three'])"/><br> |
| 12 | <input type="button" name="boolean" value="Send boolean array" onClick="document.arraytestapplet.booleanFunction(['0', '1', '2'])"/><br> |
| 13 | <input type="button" name="byte" value="Send byte array" onClick="document.arraytestapplet.byteFunction(new Array(0, 1, 2))"/><br> |
| 14 | <input type="button" name="char" value="Send char array" onClick="document.arraytestapplet.charFunction(new Array('a', 'b', 'c'))"/><br> |
| 15 | <input type="button" name="short" value="Send short array" onClick="document.arraytestapplet.shortFunction(new Array(0, 1, 2))"/><br> |
| 16 | <input type="button" name="int" value="Send int array" onClick="document.arraytestapplet.intFunction(new Array(0, 1, 2))"/><br> |
| 17 | <input type="button" name="long" value="Send long array" onClick="document.arraytestapplet.longFunction(new Array(0, 1, 2))"/><br> |
| 18 | <input type="button" name="float" value="Send float array" onClick="document.arraytestapplet.floatFunction(new Array(0.0, 0.1, 0.2))"/><br> |
| 19 | <input type="button" name="double" value="Send double array" onClick="document.arraytestapplet.doubleFunction(new Array(0.1, 0.1, 0.2))"/><br> |
| 20 | <input type="button" name="object" value="Send object array" onClick="document.arraytestapplet.objectFunction(new Array(0.1, 0.1, 0.2))"/><br> |
| 21 | </form> |
| 22 | <applet name="arraytestapplet" code="ArrayParameterTestApplet.class" codebase="resources" width="0" height="0" mayscript="true"> |
| 23 | Unable to load applet. |
| 24 | </applet> |
| 25 | <!-- |
| 26 | <object id="helloapplet" codetype="application/java-archive" |
| 27 | classid="java:HelloApplet.class" archive="helloapplet.jar" |
| 28 | height="100" width="200"> |
| 29 | Unable to load applet. |
| 30 | </object> --> |
| 31 | </body> |
| 32 | </html> |