Posted by fletch on 04/13/06 11:37
Here's how I disable a button on submit
<input type="submit" onclick="PleaseWait(this)" />
the javascript is
function PleaseWait(button)
{
button.value='PLEASE WAIT';
button.style.color='red';
button.onclick= function() {
alert('Please Wait');
return false;
}
return true;
}
We also do server side checking for duplicate form posts on all forms
received.
Navigation:
[Reply to this message]
|