[Httpunit-commit] CVS: httpunit/doc Javascript-support.html,1.2,1.3 release_notes.txt,1.131,1.132
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-08-07 20:36:26
|
Update of /cvsroot/httpunit/httpunit/doc In directory usw-pr-cvs1:/tmp/cvs-serv31870/doc Modified Files: Javascript-support.html release_notes.txt Log Message: Added JavaScript support for Select and Option Index: Javascript-support.html =================================================================== RCS file: /cvsroot/httpunit/httpunit/doc/Javascript-support.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Javascript-support.html 6 Aug 2002 21:42:08 -0000 1.2 +++ Javascript-support.html 7 Aug 2002 20:36:23 -0000 1.3 @@ -34,6 +34,7 @@ <h3>Form</h3> <h4>properties</h4> <ul> +<li>action - r/w the action associated with the form</li> <li>document - the enclosing document</li> <li><name> - the name of a control in the form</li> </ul> @@ -87,6 +88,24 @@ <h4>properties</h4> <ul> <li>checked - read/write - the state of the checkbox</li> +</ul> + +<h3>Select</h3> +<h4>properties</h4> +<ul> +<li>length - read-only - the number of options associated with the control</li> +<li>selectedIndex - read-only - the index of the selected option</li> +<li>options.length - read-only - the number of options associated with the control</li> +</ul> + +<h3>Option</h3> +<h4>properties</h4> +<ul> +<li>text - read-only - the display text associated with the option (listed after the <'option> tag)</li> +<li>value - read-write - the value associated with the option (from the 'value' attribute)</li> +<li>selected - read-write - true if this option is currently selected</li> +<li>defaultSelected - read-only - true if this option is selected by default</li> +<li>index - read-only - the index of this option in its select</li> </ul> </body> Index: release_notes.txt =================================================================== RCS file: /cvsroot/httpunit/httpunit/doc/release_notes.txt,v retrieving revision 1.131 retrieving revision 1.132 diff -u -r1.131 -r1.132 --- release_notes.txt 6 Aug 2002 21:42:08 -0000 1.131 +++ release_notes.txt 7 Aug 2002 20:36:23 -0000 1.132 @@ -4,7 +4,7 @@ 1. The "_new" and "_empty" frame targets are not handled correctly 2. The "accept-charset" attribute for forms is ignored; the page content character set is used to encode any response. This behavior matches that currently used by IE and Navigator. - 3. The regression test "pseudo-server" does not appear to run properly under JDK 1.4 + 3. The regression test "pseudo-server" does not appear to run properly under Unix. Limitations: 1. JavaScript support is minimal @@ -12,6 +12,12 @@ Revision History: + 7-Aug-2002 +Additions: + 1. JavaScript: the Select control now supports the length, options, and selectedIndex properties + 2. JavaScript: the Options object now supports the index, defaultSelected, selected (r/w), value (r/w) and + text (read-only) properties + 6-Aug-2002 Acknowledgements: Thanks to Hans-Joerg Hessmann for a faster algorithm for the table lookups @@ -22,6 +28,7 @@ Additions: 1. JavaScript: the link.onClick event is now supported 2. JavaScript: the form.onSubmit event is now supported + 3. JavaScript: the form.action property is read-write 5-Aug-2002 Additions: |