Describe how to handle concurrent AJAX requests

Describe how to handle concurrent AJAX requests.

This is done by using JavaScipt closures. Functions can be written to handle such requests. Parameters can be passed to an appropriate function selected by closures.

JavaScipt closures can be used for handling concurrent requests. A function can be written to handle such requests. Once processing of code is over, URL and the call back function to call can be passed as parameters. These parameters are passed to the AJAXInteraction(url, callback) object. Closures insure that the proper callback function associated with a specific AJAX interaction is called.
When should AJAX NOT be used?
When should AJAX NOT be used? - AJAX should not be used for critical data and transactions to avoid security breaches and to avoid situations...
How do you know that an AJAX request has completed?
readyState allows determining the request status. If the value is 4, it means that the request has been completed and response is then sent to the browser....
How do I handle the back and forward buttons?
In order to store changes in the browsers web history (enabling back and forward buttons) Iframes can be used....
Post your comment