Tuesday

Javascript waiting on multiple asynchronous calls

The sample code shows you how to use JQuery when().done() so that web client can wait for multiple AJAX async calls before acting on it.
The button on the following html fires off two calls. The result won't display until both AJAX asynchronous calls return. Put all three files in the same folder to test.
async_index.html:

service1.html:

service2.html:


No comments: