|
-
Nov 6th, 2000, 12:02 PM
#1
Thread Starter
Hyperactive Member
Hi,
monte96 was good enough to get me to this point in my code.Although I'd rather be using vbscript beggers can't be choosers. This code is fine for just one hyperlink, but I want to pass the combobox text with any link, not just "header.asp". In the real code the link is made within the same loop using '<%=QueryD("Stuff")%>.asp'.Please,Please help. This is the last thing I need to complete my project.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function blah()
{
var strURL;
strURL = Tcode.options(Tcode.selectedIndex).innerText;
strURL = "header.asp?Tcode=" + strURL + "&" + "pass=" + pass.value;
location.href=strURL
}
-->
</SCRIPT>
</HEAD>
<BODY>
<!--Do all the DB Connect stuff here-->
<%Set QueryD = Connect.Execute (Qstr)%>
<TABLE>
<%Do Until QueryD.EOF%>
<TR>
<td>
<b><a href="javascript:blah()">
Request for <%=QueryD("Stuff")%></a></b><br>
</td>
</TR>
<%QueryD.MoveNext%>
<%loop%>
</Table>
</BODY>
</HTML>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|