Urgent,, I'm trying to pass a variable via double click event to a sub routine on another page, yet the ondblclick is not working here's my code:

<td align="left" ondblclick="alert('Selection confirmed')" bgcolor="<%=backColor%>" style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; MARGIN-LEFT: 0px; BORDER-LEFT: gray 1px solid; WIDTH: 150px; COLOR: #000000; BORDER-BOTTOM: gray 1px solid; HEIGHT: 20px"><%=svrgContact%></td>

the ondblclick alert works fine, but is I tell it to go to a sub routine nothing happens
ex.
ondblclick="OnDetailsChg("><%=svrgContact%>);
and within
sub
OnDetailsChg(id)
response.redirect ../asp/PalContactDetail.asp

end sub

it doesn't go to the redirect page and it doesn't carry the variable..can someone tell me why.

it should go like this:

ondblclick="OnDetailsChg('<%=svrgContact%>')"

sub onDetailsChg(id)
response.redirect ("../asp/PalContactDetail.asp?id=" & id)
end sub

commented: Excellent +1

Thanks that worked perfectly..

No problem. I'm here, and will be for the next 7.5 hours

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.