Guys,
I'm trying to submit a form using javascript, the problem is that the 'href' is already connected to dynamic asp page that I make query on..
It looks like I need to create js that allow me to ran 2 commands at the same time.
Any ideas?
Here is the code..
<form action="query22.asp" method="post" name="form3">
<input type="hidden" name="indX" value="index.asp?intCatalogID=<%= Server.URLEncode(strParam) %>&page=<%= iPageCurrent %>">
<td align="center">
<table border="0" id="table7" width="155">
<tr>
<td width="3">
<p align="center">
</td>
<td style="border-left-style: dotted; border-left-width: 1px; border-right-width: 1px; border-top-style: dotted; border-top-width: 1px; border-bottom-width: 1px" colspan="2" align="center">
<a href="index.asp?intCatalogID=<%= rsProdInfo("catalogID")%>&pid=<%= rsProdInfo("ImgNumber")%>" onclick="javascript: sf()">
<img border="0" src="<%= rsProdInfo("SmallImg")%>"></td>
<td width="3">
</td>
</tr>
</table>
<p align="center"> </td>
</form>
<SCRIPT language="JavaScript">
function sf()
{
document.form3.submit();
}
</SCRIPT>
I'm trying to submit a form using javascript, the problem is that the 'href' is already connected to dynamic asp page that I make query on..
It looks like I need to create js that allow me to ran 2 commands at the same time.
Any ideas?
Here is the code..
<form action="query22.asp" method="post" name="form3">
<input type="hidden" name="indX" value="index.asp?intCatalogID=<%= Server.URLEncode(strParam) %>&page=<%= iPageCurrent %>">
<td align="center">
<table border="0" id="table7" width="155">
<tr>
<td width="3">
<p align="center">
</td>
<td style="border-left-style: dotted; border-left-width: 1px; border-right-width: 1px; border-top-style: dotted; border-top-width: 1px; border-bottom-width: 1px" colspan="2" align="center">
<a href="index.asp?intCatalogID=<%= rsProdInfo("catalogID")%>&pid=<%= rsProdInfo("ImgNumber")%>" onclick="javascript: sf()">
<img border="0" src="<%= rsProdInfo("SmallImg")%>"></td>
<td width="3">
</td>
</tr>
</table>
<p align="center"> </td>
</form>
<SCRIPT language="JavaScript">
function sf()
{
document.form3.submit();
}
</SCRIPT>