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.
|