+ Start a Discussion

loading please wait message in javascript custom button on standard page

I have a custom button which I've placed on a standard layout.

It has javacript in it that calls an Apex class.

But the Apex class can take up to 50 seconds to process, and during that time, I'd like to display an hourglass or 'please wait' message.

please let me know how to achive this.
Hi Venkatesh, 

The following thread has sample code which has a similar requirement of showing an hour glass image for loading content using jquery:

Please go through..
Hi Venkatesh 
follow this url