Your data should be ready to display when you enter each for-loop. If not then you are mixing too much logic into your interface. Consider moving the logic back into Java.
With your data ready to display you can test your condition at the outset of the for-loop and set the appropriate background colour in the tr element. Cheers mc On 18 Jul 2006 at 11:01, Peter Dawn wrote: > i think i follow most of it. > first to answer your question, this information is coming from the db > and changes on the fly. > > second i am not sure how to check this at the beginning of the foreach > loop, i mean how can i check for the contents of an individual cell. > also my foreach loop generates each cell content (td) and then using > @Insert i insert content whereever i want to. this is where i have a > condition which checks for the content and changes the cell colour > accordingly. > > so how can i check before my foreach for an individual cell content. > will give it a try though and see what i come up with. thanks though. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > FOCUS Computing - web design Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 17/07/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
