I am trying to user the window.open command so I can control how the window looks. I'm retrieving many rows from a database. The following code does retrieve everything I need, but when I click on a link, it always opens the last record retrieved. Do I need to make some kind of an array to separate the links so they open the correct "Image= " value? if so, how do I do that?
note: the alert is just for debugging
<td><a name="viewer" onclick="viewer()"><center><img src="images/view1.gif" align=absmiddle border=0></center></font></a></td>
<script language="JavaScript">
var jvar = "<%=x_Image%>";
var juser = "<%=Session("SLogin"%>";
var jstring = "java/view.asp?Image="+jvar+"&ID="+juser;
function viewer()
{
window.open(jstring,"viewer" void 0;
}
alert(jstring);
</script>
note: the alert is just for debugging
<td><a name="viewer" onclick="viewer()"><center><img src="images/view1.gif" align=absmiddle border=0></center></font></a></td>
<script language="JavaScript">
var jvar = "<%=x_Image%>";
var juser = "<%=Session("SLogin"%>";
var jstring = "java/view.asp?Image="+jvar+"&ID="+juser;
function viewer()
{
window.open(jstring,"viewer" void 0;
}
alert(jstring);
</script>