Announcement

Collapse
No announcement yet.

Need Help with coding for ultra status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need Help with coding for ultra status

    I am trying to figure out how to color in a cell under certain circumstances. I have my alarm company send me an email on events, like arm and disarm, and alarm. I keep the contents of the email in device E1. I figures out how to populate a cell inside the main table in ultra status, but what I would like to do is have the cell colored green if the alarm state is unarmed, and red if it is armed. I don't know how to code it. Here is what I have so far:

    <tr>
    <td valign="top" align="left" colspan="2" class="tableheader">Undetermined</td>
    </tr>
    <tr>
    <td colspan="2">
    <div id="divU" style="height=115; overflow: auto;">
    <table border="0" width="100%" cellpadding="0" cellspacing="1">
    <tr>
    <td class="tablerowodd"></td>
    <% response.write hs.devicestring("E1") %>
    </tr>
    </table>
    </div>
    </td>
    </tr>

    #2
    Beach: Is this the same question you asked previously here...?
    http://ubb.homeseer.com/eve/ubb.x?a=...3193#605103193

    Let me know if you need more detail.

    Comment

    Working...
    X