Re: I don't know how to adequately describe this...



I've solved the problem. Within the DoNav() function, I first iterate the
checkboxes and test to see if any are checked. If they are, I return out of
the function. So simple.....

Always the way - you spend ages trying to figure it out, ask for help, and
the lightbulb illuminates once you press "Send"....

"Mike" <blank@xxxxxxxxxxx> wrote in message
news:eSjF7r87HHA.5316@xxxxxxxxxxxxxxxxxxxxxxx
I am dynamically generating a table from asp, and adding some attributes to
each row so that the colour changes onmouseover, and the whole row becomes
a hyperlink. This works fine using the following code:

<tr onmouseover="highlight(this, '#FFF7BF');" onmouseout="highlight(this,
'<%=RowColour%>');"
onclick="DoNav('edit_company.asp?Nav=cont&type=company&mode=edit&AddressID=<%=RS("AddressID")%>');"
style="background-color:<%=RowColour%>;"
style="background-color:<%=RowColour%>;">

function highlight(tableRow, col){tableRow.style.backgroundColor = col;}
function DoNav(Url){document.location.href = Url;}

<%=RowColour%> applies alternating colours to the rows.

Up to this point, everything works splendidly.

Now I want to add two columns of checkboxes to each row, which is easy
enough, but I want to be able to tick the checkboxes without the DoNav()
function firing. Does anyone have any suggestions?

Thanks

Mike




.


Loading