View Full Version : Hourglass on click of a button using javascript

07-06-2011, 08:29 PM
I want to show an hourglass instead of a mouse pointer on click of a button.
I'm having both client and server side validations on the button click event.
I have written the code for hourglass in the javascript function along with the validations.
Now, on click of the button the hourglass gets displayed after 3-4 seconds and not immediately. According to me, the hourglass is getting displayed after the javascript function(client side validation) is executed and before server side validation begins.
Is there any way to display the hourglass without delays ?
Kindly let me know if there is any fix for eliminating this delay. I hope my question is clear. Please let me know if i'm wrong somewhere as i'm new to javascript programming.

Thanks in advance.

07-07-2011, 06:30 PM
See if this works for you - insert into button:


07-18-2011, 07:47 AM
I'm so sorry.... i forgot to mention that it is an asp button.