Hi,
i'm struggling to get control of the bgcolor or image of SPANs in Tables. I think my problem is not understanding the name hierarchy of Table/Spans/values etc.
I want to control the bgcolor or bgimage of the individual span with the color value given in the csv / text file. I only need it to work in IE 4.0+ and the colours or bgimages to be defined as the table is written. The entries could be from 1 line to 100 with various colour definitions called for although typically white or red. I cannot change the SPAN bgcolor from outside the table.
Can anybody help me please?
Thanks in advance.
mac
i'm struggling to get control of the bgcolor or image of SPANs in Tables. I think my problem is not understanding the name hierarchy of Table/Spans/values etc.
I want to control the bgcolor or bgimage of the individual span with the color value given in the csv / text file. I only need it to work in IE 4.0+ and the colours or bgimages to be defined as the table is written. The entries could be from 1 line to 100 with various colour definitions called for although typically white or red. I cannot change the SPAN bgcolor from outside the table.
Can anybody help me please?
Thanks in advance.
mac
Code:
<HTML>
<HEAD>
<TITLE>Data Binding Example</TITLE>
</HEAD>
<BODY>
<div >
<p align="left"><OBJECT ID="alphabet" CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="DataURL" VALUE="alphabet.txt">
<PARAM NAME="UseHeader" VALUE="True">
<embed dataurl="alphabet.txt" useheader="True" src="alphabet.txt">
</embed>
</OBJECT> </p>
<div >
<table datasrc="#alphabet" border="1" name="mytable">
<thead>
<tr bgcolor="YELLOW">
<th >Letter</th>
<th >Colour</th>
</tr>
</thead><tbody name="frank">
<tr align="CENTER">
<td>
<div datafld="Letter"></div>
</td>
<td><span datafld="Colour"></span></td>
</tr>
</tbody>
</table>
</div>
<p align="left">To simply illustrate the problem, the .csv file to go with this
page is as follows:</p>
<p align="left">Letter,Colour<br>
A,red<br>
B,white<br>
C,green </p>
<p align="left">and is called alphabet.txt in the same folder/directory</p>
<p align="left">I want to control the bgcolor or bgimage of the individual span with the color value
given in the csv / text file, as the table is written</p>
</div>
</BODY>
</HTML>