function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mauricio OliveiraMauricio Oliveira 

Disable buttons on a visualforce page after clicking some button/link until finishing processing

Hi everyone!

I have a visualforce page that contains a pageBlockButtons for Save/Cancel (1), and a pageBlockTable which one of the columns is a commandLink or commandButton (2) corresponding to an action to be done on that row's data.

Just to clarify what my buttons will do, the (1) buttons will already redirect the user to the previous page, but the (2) buttons/links will alter the data in the pageBlockTable and refresh the table.

But I want to avoid my users to be clicking endlessly with impatience and firing multiple events at once, so I would like to disable clicking any of those options (1 or 2) whenever one of them is pressed and while has not finishing processing. How can I do that?

Thanks in advance.
Best Answer chosen by Mauricio Oliveira
TintuBabuTintuBabu
Hi
Hope this Link helps
http://techsahre.blogspot.in/2011/12/overlay-effect-for-vf-form-submit.html

All Answers

TintuBabuTintuBabu
Hi
Hope this Link helps
http://techsahre.blogspot.in/2011/12/overlay-effect-for-vf-form-submit.html
This was selected as the best answer
Mauricio OliveiraMauricio Oliveira
Thank you for the reply!
The overlay.zip file that he uses in the article is no longer available, but the article was very helpful.

I have just found another solution that works great: http://blog.elieperez.net/loading-icon-visualforce-page/

Best regards.