[phpwebapp-commits] CVS: documentation/templates/webobjects/pages listbox.txt,1.2,1.3
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-09-24 14:06:45
|
Update of /cvsroot/phpwebapp/documentation/templates/webobjects/pages In directory sc8-pr-cvs1:/tmp/cvs-serv25762/templates/webobjects/pages Modified Files: listbox.txt Log Message: Index: listbox.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/listbox.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** listbox.txt 20 Aug 2003 07:31:54 -0000 1.2 --- listbox.txt 24 Sep 2003 14:06:39 -0000 1.3 *************** *** 18,24 **** <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 --- 18,34 ---- <Include SRC="{{#LISTBOX_PATH}}listbox.html" /> <WebObject Class="listbox" Name="country" + value = "selected_value" rs = "rs_id" ! onchange = "alert(this.options[this.selectedIndex].text)" ! width = "---------------" /> ! ! The attribute "value" is optional. It has the value of the selected item ! (the item with id equal to this value is the one that will be selected). ! It can be a variable, like this: value="{{#var_name}}", in this case the ! value of this variable is used. If it is not given, then its default ! value is '{{#{{#obj_name}}}}' (in the example above, it would be '{{#country}}', ! since the name of the object is 'country'; this means that the value of ! the variable {{#country}} will determine which item will be displayed as ! selected). The attribute "rs" is optional. Its default value (if not specified) is |