HTML CSS Reference/HTML Attributes Reference/datasrc
"datasrc" Example
<HTML>
<head><Title>Example For datasrc</Title></head>
<BODY>
<table bgcolor="#00ffff"
border=1 datasrc="#dataSrc"
datapagesize="10">
<tr>
<td>
<input type=textbox size=30 value="This is the first record" datafld="model"></td>
</tr>
<tr>
<td>
<input type=textbox size=30 value="This is the second record" datafld="price"></td>
</tr>
</table>
<object id="dataSrc"
classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param name="DataURL" value="carMaker.txt">
<param name="FieldDelim" value="\">
<param name="RowDelim" value="\">
</object>
</BODY>
</HTML>
datasrc is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <applet> |
| |<button> <div> |
| |<frame> <iframe> |
| |<img> <input type="button"> |
| |<input type="checkbox"> <input type="hidden"> |
| |<input type="image"> <inputtype="password"> |
| |<input type="radio"> <input type="text"> |
| |<label> <marquee> |
| |<param> <select> |
| |<span> <table> |
| |<textarea> |
+----------------+--------------------------------------------------------------+
"datasrc" Syntax and Note
Note:
This attribute sets the data source for binding data to elements.
Syntax:
<element datasrc="value" > . . . </element>