Name

DATAFLD — NN n/a IE 4 HTML n/a

Synopsis

DATAFLD=”columnName"

Optional

Used with IE 4 data binding to associate a remote data source column name to the selectedIndex property of a SELECT element (i.e., a zero-based index value of the item currently selected in the list, as described in the SELECT object of Chapter 9). As such, you can use data binding only with SELECT elements that do not specify the MULTIPLE attribute. A DATASRC attribute must also be set for the element.

Example

<SELECT NAME="chapters" DATASRC="#DBSRC3" DATAFLD="chapterRequest">
    <OPTION VALUE="chap1.html">Chapter 1
    <OPTION VALUE="chap2.html">Chapter 2
    <OPTION VALUE="chap3.html">Chapter 3
    <OPTION VALUE="chap4.html">Chapter 4
</SELECT>

Value

Case-sensitive identifier.

Default

None.

Object Model Reference

IE

[window.]document.formName.selectName.dataFld

[window.]document.forms[i].elements[i].dataFld

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.