Hello everyone,
I am totally new to javascript, here is my situation:
I had a php document that returns a quered database table and I use a javescript download from the web to highlighed the row of the table. I echoed the script and in the <table> tag I added [PHP]echo "<script type=\"text/javascript\" src=\"/modules/event/lib/tableH.js\"></script>";
echo "<table id=\"listing\" width=\"100%\" cellpadding=\"2 \" cellspacing=\"0 \" class=\"calenda r\" onMouseOver=\"j avascript:track TableHighlight( event, '#daFAFA');\"
onMouseOut=\"ja vascript:highli ghtTableRow(0); \">";[/PHP]That is fine for me so far.
I had a field in my table that send user to another page. What I want to do is when user click on the highlighted row, using that field's url and sends user to that page.
I know that shouldn't be difficult but I have no idea where to start or lookup. Would anyone please set me a direction to accomplish this.
Thanks in advance
Osward
I am totally new to javascript, here is my situation:
I had a php document that returns a quered database table and I use a javescript download from the web to highlighed the row of the table. I echoed the script and in the <table> tag I added [PHP]echo "<script type=\"text/javascript\" src=\"/modules/event/lib/tableH.js\"></script>";
echo "<table id=\"listing\" width=\"100%\" cellpadding=\"2 \" cellspacing=\"0 \" class=\"calenda r\" onMouseOver=\"j avascript:track TableHighlight( event, '#daFAFA');\"
onMouseOut=\"ja vascript:highli ghtTableRow(0); \">";[/PHP]That is fine for me so far.
I had a field in my table that send user to another page. What I want to do is when user click on the highlighted row, using that field's url and sends user to that page.
I know that shouldn't be difficult but I have no idea where to start or lookup. Would anyone please set me a direction to accomplish this.
Thanks in advance
Osward
Comment