View Single Post
Old 02-05-2013, 10:41 AM   PM User | #3
happybanana
New Coder

 
Join Date: Nov 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
happybanana is an unknown quantity at this point
Thanks for that ... can't believe I missed that. Actually can't believe it was working at all in the first place!

OK, so I changed this line and added the color blue to make it obvious what's going on in my program.

el.parentNode.cells[i].style.backgroundColor='blue';

For some reason it highlights the entire row but doesn't change the bgcolor in the code piece I'm using to indicate a saved traffic light from the database (here):

Code:
<td bgcolor=\"green\" onclick=\"togCell('#green'); makePOSTRequest('$javvar', '1')\">&nbsp</td>
Any ideas why it's not changing the bgcolor?
happybanana is offline   Reply With Quote