Hi
I am developing a web application using Java Script.
I DON'T want to allow to a user clicking on any buttons
during some operation (DB update, for example).
I have the following code:
1. Disable all buttons
2. Perform data operation
3. Enable the buttons back
The problem is that the Disable operation (1) doesn't execute immediately.
It seems like the disable operation (1) executes asynchronously together
with the data operation (2).
How can I make disable to execute immediately?
P.S. I tried to use setTimeout before the data operation (2), but it didn't help.
Thanks