Board index » Visual Studio » No progress with progress bar

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


-
 

Re:No progress with progress bar

Does the ASP application on the server allow debugging?



Open properties on the applications web folder, goto the home directory tab,

click the configuration button in the application settings section, goto the

App Debugging tab. If any of the debugging flags are selected then this will

be your problem



In debugging mode an ASP application only runs in one thread and therefore

can only process one request at a time.



Anthony.



"UmbraLimi" wrote:



Quote
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

-