JavaScript Reference/Javascript Properties/fieldDelim
"fieldDelim" Example
<source lang="javascript">
<html> <head> <script language="javascript"> function rowEnter(){
myTable.rows[myData.recordset.AbsolutePosition].style.backgroundColor = "yellow";
} function add(){
myData.recordset.AddNew();
} function del(){
if (myData.recordset.RecordCount > 0) myData.recordset.Delete();
} </script> <script for="myTable" event="onreadystatechange">
if (this.readyState == "complete"){ this.rows(myData.recordset.AbsolutePosition).style.backgroundColor = "yellow"; myData.onrowenter = rowEnter; }
</script> <script for="myData" event="onrowexit">
for (var i = 1; i <= myData.recordset.RecordCount; i++){ myTable.rows[i].style.backgroundColor = ""; }
</script> <script for="tableList" event="onclick">
myData.recordset.AbsolutePosition = this.recordNumber; window.event.cancelBubble = true;
</script> <script for="myData" event="oncellchange"> alert(event.dataFld); </script> </head> <body> <button onclick="add();">Add Record</button> <button onclick="del();">Delete</button> <button onclick="alert(firstname.dataFld);">dataFld</button> <button onclick="alert(myDiv.dataFormatAs);">dataFormatAs</button> <button onclick="alert(myTable.dataPageSize);">dataPage</button> <button onclick="alert(myTable.dataSrc);">dataSrc</button>
<object classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83" id="myData">
<param name="DataURL" value="myfile.csv"> <param name="UseHeader" value="True"> <param name="TextQualifier" value=""">
</object>
First Name: <input id="firstname" type="text" datasrc="#myData" datafld="firstname">
Last Name: <input id="lastname" type="text" datasrc="#myData" datafld="lastname">
First Name | Last Name |
</body> </html>
</source>
"fieldDelim" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<object> | +----------------+--------------------------------------------------------------+
</source>
"fieldDelim" Syntax and Note
<source lang="javascript">
Note: Read and write property. Specifies the character to separate fields or table columns.
Value: Any alphanumeric character (default is a comma), or any encoding for a nonprintable character, such as # for the # symbol). The TDC (Tabular Data Control, a Microsoft ActiveX control) object allows an HTML page to display data from delimited text files either as part of tables or one row at a time. Using the <object> element, you can embed the TDC control inside a page.
Syntax:
objectName.fieldDelim = value
</source>