Board index » Visual Studio » No progress with progress bar
|
wmurch
|
No progress with progress bar
Visual Studio27
Hi I am attempting to implement an AJAX (-like) application using IIS on Windows XP. Here is the process: 1. An XMLHTTPRequest is made initially for a report that can take up to 10 secinds to complete. While it is running, it periodically updates a session variable showing how far along it is. 2. After this request is started on the client, a Window.SetInterval(500) call is made that itself initiates another XMLHTTPRequest to the server (all separate vars and functions are used) to see how the report is progressing. It reads the Session var and returns the progress. The screen is updated with this progress text and %complete via a div acting as a progress bar. 3. When the initial XMLHTTPRequest returns, it cancels the Progress XMLHTTPRequest request using Window.ClearInterval Each of the XMLHTTPRequest starts and ends. The trouble is that the Progress requests, though they leave the client browsers as expected, they are not sensed at the server until after the inital report XMLHTTPRequest has completely finished. It appears that the 2nd and subsequent XMLHTTPRequest arrive at the server and are queued to be sequentially acted upon. You only see 0% and 100% - nothing in between. My question is: can more than one request from the same client and the same session be acted upon in IIS 5.1? Have I got this right? Thanks in advance, UmbraLimi - |
