|
|
|
|
|
| | |
|
Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
screen refresh |
From: |
Ken LeFevre |
Date: |
9/7/2000 1:54:14 PM |
IP: |
63.192.161.11 |
I have code that puts up a progress bar and a changing message above it using DHTML. It works great in server-side code. When I tried to use it in client-side code, I found a problem. I get the initial display and the end display, but none of the progress displays in the middle. I found that if I put a MsgBox in the loop, each time I dismiss it (causing a screen refresh), I get the intermediate updates.
Any ideas on how to force a screen refresh (like doevents in VB, which doesnt work in ASP)?
Here are the two client-side functions that do the work.
***************************************************************************
FUNCTION: UpdateProgressBar()
DESCRIPTION: This function updates the progress bar.
PARAMETERS: none
RETURNS: void
DATE: 8-9-00
BY: Alex Homer in an article called Displaying
a Progress Bar in a Web Page.
Obtained from www.asptoday.com.
REVISED:
***************************************************************************/
Sub UpdateProgressBar(increment)
increase the width of the colored DIV element
intWidth = document.all("divProgress").style.pixelWidth
if (intWidth < 300) then
if (increment = 9999) then
document.all("divProgress").style.width = 300
else
document.all("divProgress").style.width = intWidth + increment
end if
end if
End Sub
****************************************************************** |
|
|

|
|
|
|
|
|
|
|
|
|