Help: passing variable via table field different page subroutine

Reply

Join Date: Jan 2008
Posts: 19
Reputation: dweaver6 is an unknown quantity at this point 
Solved Threads: 0
dweaver6 dweaver6 is offline Offline
Newbie Poster

Help: passing variable via table field different page subroutine

 
0
  #1
Feb 13th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Help: passing variable via table field different page subroutine

 
1
  #2
Feb 14th, 2008
it should go like this:

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

sub onDetailsChg(id)
response.redirect ("../asp/PalContactDetail.asp?id=" & id)
end sub
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 19
Reputation: dweaver6 is an unknown quantity at this point 
Solved Threads: 0
dweaver6 dweaver6 is offline Offline
Newbie Poster

Re: Help: passing variable via table field different page subroutine

 
0
  #3
Feb 14th, 2008
Thanks that worked perfectly..
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Help: passing variable via table field different page subroutine

 
0
  #4
Feb 14th, 2008
No problem. I'm here, and will be for the next 7.5 hours
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP Forum


Views: 1054 | Replies: 3
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC