...

View Full Version : need row to hyperlink...



parallon
09-29-2006, 11:24 PM
Hello all. I have a table in which I would like the whole row to act as a hyperlink. I have tried everything but the correct thing, so if anyone has any helpful suggestions, I would be more than appreciative. Here is what I have so far:


<tr onMouseOver="this.style.background='#FFFF99'" STYLE="cursor:hand;" onmouseout="this.style.background='white';" onClick="<A HREF="Cust_Main.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "CustomerNo=" & rsCust_Info.Fields.Item("CustomerNo").Value %>"></A>">
<td WIDTH="125"><%=(rsCust_Info.Fields.Item("Customer").Value)%></td>
<td WIDTH="150"><%=(rsCust_Info.Fields.Item("CustomerID").Value)%></td>
<td WIDTH="125"><%=(rsCust_Info.Fields.Item("City").Value)%></td>
<td WIDTH="125"><%=(rsCust_Info.Fields.Item("State").Value)%></td>
<td WIDTH="125"><%=(rsCust_Info.Fields.Item("Phone").Value)%></td>
<td WIDTH="50"><div ALIGN="CENTER">
<input TYPE="checkbox" NAME="checkbox" disabled="true" <% If (rsCust_Info.Fields.Item("Active").Value) = True Then %><% Response.Write (" checked")%><% else %><% Response.Write ("")%><% End If %> /></div></td>
</tr>

Thanks in advance,

Parallon

Vigilante
09-30-2006, 03:33 AM
Well this works, as a base. You'd have to use javascript for a link. But that may not be good because users can turn off javascript, and then your links won't work.


<html>
<head>
<title>yo</title>
</head>
<body>
<table border="1" width="500">
<tr onclick="javascript: alert('hello')">
<td>
Some stuff in row</td>
</tr>
</table>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum