PDA

View Full Version : Setting table cell color using XML data


wook1000
01-07-2009, 02:03 AM
Hi all,

I have a script that sets the background color of a table cell based on XML data. It works beautifully in Firefox but all the cells in IE appear in the same sickly green color. Can anyone help me here as this is driving me crazy!!

The code in question is here:
<td class=\"dayTrigger\" onmouseover=\"daysDataSet.setCurrentRow('{daysDataSet::ds_RowID} ');rosterData.setCurrentRow('{ds_RowID}');\" spry:repeat=\"daysDataSet\" bgcolor='{daysDataSet::background}'>{daysDataSet::abbr}</td>

The relevant XML is:
<day id="2">
<date>2008-12-02</date>
<status>Leave</status>
<comment>Family</comment>
<background>#FF3333</background>
<abbr>LV</abbr>
</day>

Thanks.