I have a page that conatins some text boxes that need to be completed
before submission. I used requiredFieldValidators which work very
well.
User being what they are where quite happy, but they wanted an
Hourglass displayed when the page is submitted as they can't remember
whether they have clicked the button.
I found the following javascipt and vb souce that wires the submit
button to a client side javascript that displays the hourgalss and
submits the form, but this ignores the validation controls.
I've reverted to using server side validation to re-display the form
if the boxes are not completed, but this is far from ideal
Anyone any idea on how I can display an hourglass AND use the client
side validation controls, or suggest an alternative.
Form contains a submit button btnSubmit
Pageload code behind file:
btnSubmit.Attributes.Add("onClick", "return doit();")
javascript:
<script language="javascript">
function doit()
{
document.body.style.cursor='wait'
}
</script>
btnsubmit on-click code executes as normal after hourglass displayed
Thanks