0

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.

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by SheSaidImaPregy
1

it should go like this:

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

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

Votes + Comments
Excellent
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.