Electroman
Dec 28th, 2004, 10:18 AM
The code I'm using is basically:
<script language="JavaScript">
<!--
function DisableButs()
{
document.getElementById('form1').submit.disabled = true;
document.getElementById('form1').back.disabled = true;
document.getElementById('form1').reset.disabled = true;
return true;
}
//-->
</script>
<input TYPE="submit" NAME="submit" VALUE="Continue" onclick="DisableButs();" />
Submit, Back & Reset are all buttons on the form.
This works fine in FF however in IE when i click the button it seems that it disables the button before it can submit. The back button works fine still, because it goes back a page using a second statement in the onclick event.
Should I be submitting the form in the javascript after the disable buttons call?
If so how do I do that :).
<script language="JavaScript">
<!--
function DisableButs()
{
document.getElementById('form1').submit.disabled = true;
document.getElementById('form1').back.disabled = true;
document.getElementById('form1').reset.disabled = true;
return true;
}
//-->
</script>
<input TYPE="submit" NAME="submit" VALUE="Continue" onclick="DisableButs();" />
Submit, Back & Reset are all buttons on the form.
This works fine in FF however in IE when i click the button it seems that it disables the button before it can submit. The back button works fine still, because it goes back a page using a second statement in the onclick event.
Should I be submitting the form in the javascript after the disable buttons call?
If so how do I do that :).