Thank you Jim. I did not think of this idea. Just have done the PHP course. Probably, I need to sort out the mid-tier setup first. But good idea , client side. // Omega
-----Original Message----- From: "Jim Bruce" <[email protected]> Sent: 6/12/14 12:23 PM To: "[email protected]" <[email protected]> Subject: Re: need some ideas from you how to show incidents records over 4 hrin red color. You said you were looking for ideas. Just a thought, but you could let the browser do this for you with a little javascript on your form. Assuming the following HTML table: <table> <tr> <td>Yada</td> <td class="time">2014-12-03</td> </tr> <tr> <td>Yada</td> <td class="time">2014-12-05</td> </tr> <tr> <td>Yada</td> <td class="time">2014-12-04</td> </tr> </table> This JavaScript code will highlight the 1st and 3rd items: var now = new Date('2014-12-05'); // for example only $('.time').each(function() { x = new Date($(this).text()); if (x < now) { $(this).css('background-color', 'red'); $(this).css('color', 'white'); } }); Head over to jsfiddle(DOT)net to try it out with your actual form content. Hope this helps. -Jim _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

