Editable select lists
Extension UIs often contain pop-up lists that are defined using the
Dreamweaver, you can make pop-up lists in extensions editable by adding
to the
tag. To set a default value, set the
select
want the select list to display.
The following example shows the settings for an editable select list:
<select name="travelOptions" style="width:250px" editable="true"
editText="other (please specify)">
<option value="plane">plane</option>
<option value="car">car</option>
<option value="bus">bus</option>
</select>
When you use select lists in your extensions, check for the presence and value of the editable
attribute. If no value is present, the select list returns the default value of
indicates that the select list is not editable.
As with standard, noneditable select lists, editable select lists have a
(see
"Objects, properties, and methods of the Dreamweaver DOM" on page
property returns -1 if the text box is selected.
To read the value of an active editable text box into an extension, read the value of the
property. The
editText
editable text box, the value of the
entered and no value has been specified for
Dreamweaver adds the following custom attributes for the
pop-up lists:
Attribute
Description
name
Declares that the pop-up list has an editable
editable
text area
Holds or sets text within the editable text area A string of any value
editText
Editable select lists are available in Dreamweaver.
114
User Interfaces for Extensions
property returns the string that the user entered into the
editText
attribute, or an empty string if no text has been
editText
editText
select
attribute and the value that you
editText
selectedIndex
.
tag to control editable
select
Accepted Values
A Boolean value of
false
tag. In
editable="true"
, which
false
property
129). This
or
true
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers