Hi , the code below is working fine at home but when i host it on the company intranet it produces a runtime error, could it be an issue of browser compatibility, i'm not sure what version of IE we are running at work , but can anyone see anything in the code below that might classicly cause a problem in older browsers ?
the problem is specifically to the if(document.... line
<script language="javascript">
function checkBox() {
if (document.form.halfDay.checked){
document.form.lenghtOfAbsence.value="0.5";
}
else
countDays(this.form);
}
</script>
the problem is specifically to the if(document.... line
<script language="javascript">
function checkBox() {
if (document.form.halfDay.checked){
document.form.lenghtOfAbsence.value="0.5";
}
else
countDays(this.form);
}
</script>