Is there a way to have one AJAX request with multiple responses?
For example, if make a GET request to the server which will take a long time to calculate, how could I have the server occasionally send back responses which give me some data about the progress?
If so, could somebody post an example, preferably with Jquery and an explanation of the mechanism through which the server can does it?
You can implement this using 2 ajax calls, one to run the process and a second call to periodically poll the progress:
On the server side:
On the client side: