I have a simple form and when the users clicks on the Proceed button, I want to hide the button and display a "Processing " message and then do the validation. I have two table rows at the end of my table - one called Proceed and one called Processing. Processing row is hidden. When the user clicks on the Proceed button, a validation function is called. The first action in this function is to hide the Proceed button and display the Processing message as below:
However, it always does the validation first and then hides the Proceed button and displays the processing message. Because the validation takes a while I have a problem whereby the user clicks the proceed button again because they think nothing is happening. What can I do??
Mighty
Code:
function validate(form)
{
// Hide the Proceed button
Proceed.style.display = 'none';
Processing.style.display = 'block';
(all validation code follows here)
However, it always does the validation first and then hides the Proceed button and displays the processing message. Because the validation takes a while I have a problem whereby the user clicks the proceed button again because they think nothing is happening. What can I do??
Mighty