I am trying to reference a table entry (qtyonhand) populated from a
recordset. There is only one record displayed on this table. When i try to
compare this displayed field to an input field (orderqty) i get an (error on
this page or no result at all ). When just comparing the input field to a
set of "" everything works fine. This is an ASP file with a javascript
function. Thanks in advance.
Signed... New at this!
code below...
----------------------------------------------------------
<SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
function btnValidate_onc lick()
{
var myform = document.form1;
var qtyonhand = myform.qtyonhan d.value;
alert( myform.orderqty .value + " ");
if(myform.order qty.value=='' || myform.orderqty .value > qtyonhand)
{alert(" Qty ordered is missing or greater than Qty on hand. ");
myform.orderqty .focus();
}
}
</SCRIPT>
recordset. There is only one record displayed on this table. When i try to
compare this displayed field to an input field (orderqty) i get an (error on
this page or no result at all ). When just comparing the input field to a
set of "" everything works fine. This is an ASP file with a javascript
function. Thanks in advance.
Signed... New at this!
code below...
----------------------------------------------------------
<SCRIPT LANGUAGE="JavaS cript" TYPE="text/javascript">
function btnValidate_onc lick()
{
var myform = document.form1;
var qtyonhand = myform.qtyonhan d.value;
alert( myform.orderqty .value + " ");
if(myform.order qty.value=='' || myform.orderqty .value > qtyonhand)
{alert(" Qty ordered is missing or greater than Qty on hand. ");
myform.orderqty .focus();
}
}
</SCRIPT>
Comment