hide button IMMEDIATELY
Posted on 2013-06-27
Is there a way to give a higher "priority" or a speedier "paint refresh" to a button on a web page?
I have a button that, when clicked, I want to hide it IMMEDIATELY -- before any attempt by the client to initiate a round-trip to the server (which clicking the button does)
The problem is - when the button is clicked it takes a while for the page to process everything. The user does not wait patiently. Instead, they click the button several times more, resulting in unwanted behavior.
So what I want to do is AS SOON AS the user clicks the button, the first time, I want to hide the button so that they cannot click on the button again.