I am trying to pull the "Quantity on Hand" value in Vbscript into my Javascript function. I have tried everything and its not working. Please help... Thanks!
Code:
<%@ LANGUAGE = "VBScript" %>
<!-- #include file="db.inc" -->
<!-- #include file="config.inc" -->
if stage="" or stage=null then
%>
.....blah blah
<tr>
<td align="left" width="75"><font face="Arial" size="2"><strong><b>Quantity On Hand:</b></strong></font></td>
<td align="right" width="97"><p align="left"><font size="2" face="arial"><%= rsprod("QOH") %> </font></td>
</tr>
</table>
<p><font face="Arial" size="2">How many of these do you want to order? </font></p>
<%
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.Qty.value > ????? )
{
alert("Quantity Ordered has exceeded the amount in Stock!");
theForm.Qty.focus();
return (false);
}
return (true);
}
//-->
</script>
....blah blah
Code:
<%@ LANGUAGE = "VBScript" %>
<!-- #include file="db.inc" -->
<!-- #include file="config.inc" -->
if stage="" or stage=null then
%>
.....blah blah
<tr>
<td align="left" width="75"><font face="Arial" size="2"><strong><b>Quantity On Hand:</b></strong></font></td>
<td align="right" width="97"><p align="left"><font size="2" face="arial"><%= rsprod("QOH") %> </font></td>
</tr>
</table>
<p><font face="Arial" size="2">How many of these do you want to order? </font></p>
<%
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.Qty.value > ????? )
{
alert("Quantity Ordered has exceeded the amount in Stock!");
theForm.Qty.focus();
return (false);
}
return (true);
}
//-->
</script>
....blah blah