My control application utilizes asp.net webservices for functionality.
A timer is set to perform an asynchronous webservice call every 5 seconds in order to update the screen. Additionally, there are user buttons that trigger parts of the screen to refresh, also making async webservice calls.
The problem arises when a user initiates a webservice command before the timer response has arrived, resulting in a messy screen layout. I am looking for a way to make the user command wait if there is a pending async timer call in progress. How can I synchronize between these calls using Javascript?
Thank you.