What's the problem? You can test your condition at the beginning of the row, when writing the <tr> component, so that you generate something like <tr style="background-color: red;"> or <tr class="rowinerror">
I'm sure you've got past this. You mention "when certain text is received", does this mean from user input in the midst of the table row or from the database? Are you able to test the condition at the beginning of the row. If you can't test at the beginning you could get JS to modify the background colour of the row, all you need is to assign an 'id' to the row and then retrieve the row in your JS and start changing properties. Maybe you've tries this too... One last thing, are you setting background colours in each cell? If you do these will overwrite the background colour of the row in which case you may need to use JS to obtain control over each cell and set the background colour property manually in each. Cheers mc On 18 Jul 2006 at 10:02, Peter Dawn wrote: > guys, > > i have a table with a foreach condition within it. now the code > generates a bunch of table rows based on my condition. > > now within my last column, i have a condition where if a certain text > is received the background colour of that cell changes. now what i > want to do is, if that text is received i want to hightlight the > entire row or perhaps flash it, so that it shows attention to the user > indicating that there is an error there. > > now how can i effect the entire row and not just the individual cell. > has somebody done like this within a table. > > thanks. > > --------------------------------------------------------------------- > 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]