R
realraven2000
Hi,
my colleague coded the following onclick events with Javascript which
only seem to fire in IE not in firefox. The checkboxes are built in
Form frmProdDet while looping through a recordset (ncount=0..1..2..n)
of Stock Items. The idea is to prefill quantity of ordered items with 1
when buy checkbox is checked, and to empty it when cleared. I put in
alert for testing displays in IE fine, not in fx. My guess its a
syntactical problem.
Any idea why this is not firing in firefox?
apart from this the site works well in both MSIE and ff. According to
him it does not have to be Mozilla compatible, but it would be nicer
for me (as I do most of my testing with ff first).
thanks in advance.
Axel
Relevant code:
my colleague coded the following onclick events with Javascript which
only seem to fire in IE not in firefox. The checkboxes are built in
Form frmProdDet while looping through a recordset (ncount=0..1..2..n)
of Stock Items. The idea is to prefill quantity of ordered items with 1
when buy checkbox is checked, and to empty it when cleared. I put in
alert for testing displays in IE fine, not in fx. My guess its a
syntactical problem.
Any idea why this is not firing in firefox?
apart from this the site works well in both MSIE and ff. According to
him it does not have to be Mozilla compatible, but it would be nicer
for me (as I do most of my testing with ff first).
thanks in advance.
Axel
Relevant code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function chkbuy(ncount)
{
//alert
alert("checked=" + document.frmProdDet("checkbox" + ncount).checked);
if (document.frmProdDet("checkbox" + ncount).checked==true)
{
document.frmProdDet("txtQty" + ncount).value="1";
}
else
{
document.frmProdDet("txtQty" + ncount).value="";
}
}
//-->
</script>
<form Name="frmProdDet" Method="post">
<table><tr>
<td width="30"> <div align="left">
<input type="checkbox" name="checkbox<%=ncount%>"
onclick=Javascript:chkbuy(<%=ncount%>)>
</div></td>
<td width="31"> <input name="txtQty<%=ncount%>" type="text"
class="bodysmall" size="2">
</td>
</table></tr>
</form>