Progress Bar
am 07.05.2007 09:11:19 von Michael
Hi. I need some script that will show progress bar in classic asp. I did not
found match example. I found samples with bar only when we need many
repeated steps. My function has diferrent time of execution, from 1-2
seconds up to 40-50sec, depend of server speed.
Below the place where I thought it should be
<%
dim path
Set myServer = Server.CreateObject("myDLLServer.myReport")
For i to SomeNumber
path=myServer.GetReport(parameters) ' This action takes a
long time. This loop For does not help me, because i am not jumping step by
step like in recordset. The delay is keep me here as long
' as GetReport function works
call showprogressbar()
Next
%>
Any sugsestion? Thanks
Re: Progress Bar
am 07.05.2007 19:32:45 von Dave Anderson
Michael wrote:
> Hi. I need some script that will show progress bar in classic asp. I
> did not found match example. I found samples with bar only when we
> need many repeated steps. My function has diferrent time of
> execution, from 1-2 seconds up to 40-50sec, depend of server speed.
>
> Below the place where I thought it should be
> <%
> dim path
> Set myServer = Server.CreateObject("myDLLServer.myReport")
>
> For i to SomeNumber
>
> path=myServer.GetReport(parameters) ' This action
> takes a long time. This loop For does not help me, because i am not
> jumping step by step like in recordset. The delay is keep me here as
> long ' as GetReport function works
>
> call showprogressbar()
> Next
> %>
You must begin by understanding what "stateless" means. Your script produce
a single HTML document that is indistinguishable from a static HTML
document. Worse, it will wait until the entire process completes before
sending that document.
Your best bet is probably an AJAX approach:
http://www.google.com/search?hl=en&q=ajax+progress+bar
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Re: Progress Bar
am 08.05.2007 09:59:03 von Anthony Jones
"Dave Anderson" wrote in message
news:ODSy62MkHHA.4032@TK2MSFTNGP02.phx.gbl...
> Michael wrote:
> > Hi. I need some script that will show progress bar in classic asp. I
> > did not found match example. I found samples with bar only when we
> > need many repeated steps. My function has diferrent time of
> > execution, from 1-2 seconds up to 40-50sec, depend of server speed.
> >
> > Below the place where I thought it should be
> > <%
> > dim path
> > Set myServer = Server.CreateObject("myDLLServer.myReport")
> >
> > For i to SomeNumber
> >
> > path=myServer.GetReport(parameters) ' This action
> > takes a long time. This loop For does not help me, because i am not
> > jumping step by step like in recordset. The delay is keep me here as
> > long ' as GetReport function works
> >
> > call showprogressbar()
> > Next
> > %>
>
> You must begin by understanding what "stateless" means. Your script
produce
> a single HTML document that is indistinguishable from a static HTML
> document. Worse, it will wait until the entire process completes before
> sending that document.
>
> Your best bet is probably an AJAX approach:
> http://www.google.com/search?hl=en&q=ajax+progress+bar
>
-.net in the google search turns up this:-
http://javanet1-staging.locaweb.com/ajax-progress-bar/