Update of /cvsroot/phpwebapp/web_app/webobjects/listbox
In directory sc8-pr-cvs1:/tmp/cvs-serv5059/webobjects/listbox
Modified Files:
listbox.txt
Log Message:
Index: listbox.txt
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/webobjects/listbox/listbox.txt,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** listbox.txt 21 Feb 2003 08:17:06 -0000 1.1.1.1
--- listbox.txt 23 Feb 2003 14:20:31 -0000 1.2
***************
*** 16,30 ****
Usage example:
! <WebObject Class="listbox" Name="country" rs="rs_id" width="---------------" />
The attribute "rs" is optional. Its default value (if not specified) is
{{obj_id}} (in the example above, it would be 'listbox::country').
The attribute "width" is also optional; it is used as the last line of the
! list, in order to keep the width of the <select> to a certain size (which
! can also be used as a nothing selected (none of the above) value).
This WebClass uses a <select> tag like this:
! <select name="country"> (name="{{obj_name}}")
. . . . .
</select>
--- 16,37 ----
Usage example:
! <Include SRC="{{LISTBOX_PATH}}listbox.html" />
! <WebObject Class="listbox" Name="country"
! rs = "rs_id"
! onchange = "alert(this.options[this.selectedIndex].text)"
! width = "---------------" />
The attribute "rs" is optional. Its default value (if not specified) is
{{obj_id}} (in the example above, it would be 'listbox::country').
+ The attribute "onchange" (all lowercase), is optional and is used as
+ the "onchange" attribute of the <select> tag.
+
The attribute "width" is also optional; it is used as the last line of the
! list, in order to keep the width of the <select> to a certain size, and
! can also be used as a "nothing selected" (none of the above) value.
This WebClass uses a <select> tag like this:
! <select name="{{obj_name}}" onchange="{{onchange}}">
. . . . .
</select>
|