HTML CSS Reference/HTML Attributes Reference/datafld — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 09:21, 26 мая 2010

"datafld" Example

    
<HTML>
<head><Title>Example For datafld</Title></head>
<BODY>
<a datasrc="#myDataSource" 
   datafld="column1" 
   dataformatas="html"
   target="_blank">Example of datafld attribute</a>
   <object id="myDataSource" 
           classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
       <param name="DataURL" value="YourDatafldDatasrc.txt">
       <param name="FieldDelim" value="\">
       <param name="RowDelim" value="\">
   </object>
</BODY>
</HTML>



datafld is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<a>                             <applet>                      |
|                |<button>                        <div>                         |
|                |<fieldset>                      <frame>                       |
|                |<iframe>                        <img>                         |
|                |<inputtype="button">            <input type="checkbox">       |
|                |<input type="hidden">           <inputtype="image">           |
|                |<input type="password">         <input type="radio">          |
|                |<input type="text">             <label>                       |
|                |<marquee>                       <param>                       |
|                |<select>                        <span>                        |
|                |<textarea>                                                    |
+----------------+--------------------------------------------------------------+



"datafld" Syntax and Note

Note:
    
This attribute determines which field in the datasrc the element should be bound to. 
datafld acts as an intermediary between the page and the datasrc.
    
Syntax:
    
<element datafld="value" > . . . </element>