I Have ExtJS client-side programm that communicates with server using synchronous AJAX. Over 95% responses incoming at less of 1 second but there a few cases when server can execute commands during 10 seconds or more. That’s why I need some mechanism that can tell to user that this is not a bug (“pls wait” form)
So. I need something like
- send request;
- setTimeOut(‘show loading form’, 2 sec);
- wait for response
- close loading form
- process response.
Is there some way to execute some function while waiting synchronous AJAX response?
P. S. I use synchronous because of legacy, there is no way to correct it (best way – over 6 month of work).
There is no such methods, but it can be implement by hooking all events while async request is going…