Spaces/Official ESi/Scriptaculous & Adv. Tags

Color Change After 12 hours

Andrew Donnan
posted this on November 25, 2008 14:48

<attribute name="bgColor">
<if test="@how_old &gt; 12">red</if>
</attribute>
<eocfield name="entrydate"/>
<if test="1=0">
<expression name="how_old">datediff(hh,entrydate,getUTCDate())</expression>
</if>
 

Comments

User photo
Ryan McArthur
Tulare County Health & Human Services Agency

Is there a way to make the change happen without either a manual refresh or a new data hit?  I'm using something similar and although it color codes perfectly, if the data is static and the window left open (i.e. a wall display), the time will pass without any change in color.  I have tried invoking a refresh using javascript, but even though the window refreshes, the expression does not appear to re-evaluate.  Any suggestions?

June 16, 2009 02:33