I've got three html table cells setup so when I click on one of them I simulate a traffic light system (and call some ajax to post the result).
<td onclick=\"togCell('green'); makemyPOSTRequest('$myvar', '3')
<td onclick=\"togCell('amber'); makemyPOSTRequest('$myvar', '2')
<td onclick=\"togCell('red'); makemyPOSTRequest('$myvar', '1')
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.
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):
*slaps head* never mind ... just solved it
surprisingly solves it :)
|All times are GMT +1. The time now is 07:11 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.