Show Progress in a Web Form

G

Guest

I have seen this subject tossed around in this forum before. But in my case I
need a simple solution. I do NOT need to show progress in terms on percentage
complete. But rather I need to show a visual indicator to the user that a
process is running.

There are two scenarios where I need to show a busy indicator:

Scenario #: The first is when posting to the web server and waiting for a
response.

Scenario #2: When launching a new window and waiting for it to load.

In either case, there is a delay in waiting for SQL data to be read and
rendered into HTML content.

I have tried using a popup window with an animated GIF. It can be centered
on the screen easily. But it is a separate non-modal window and mechanisms
for closing it from a separate window are not so easy. I have tried to
implement this and ran into problems in the Scenario #2 above.

I have thought about an iframe in the same window also.

I welcome any ideas on this subject. Perhaps there is a simple solution I
have not yet tried.
 
J

Jeff Dillon

Always best to deal with the source of the problem, in this case SQL. What
exactly is taking so long, before applying a band-aid solution?

Jeff
 
S

Scott M.

Why not put the animated GIF in a web form Image control, position it
absolutely on the page and simply show it or hide it via the control's
"visible" property?
 
B

bruce barker

animated gifs generally will not run during a postback.

-- bruce (sqlwork.com)


| Why not put the animated GIF in a web form Image control, position it
| absolutely on the page and simply show it or hide it via the control's
| "visible" property?
|
|
| | >I have seen this subject tossed around in this forum before. But in my
case
| >I
| > need a simple solution. I do NOT need to show progress in terms on
| > percentage
| > complete. But rather I need to show a visual indicator to the user that
a
| > process is running.
| >
| > There are two scenarios where I need to show a busy indicator:
| >
| > Scenario #: The first is when posting to the web server and waiting for
a
| > response.
| >
| > Scenario #2: When launching a new window and waiting for it to load.
| >
| > In either case, there is a delay in waiting for SQL data to be read and
| > rendered into HTML content.
| >
| > I have tried using a popup window with an animated GIF. It can be
centered
| > on the screen easily. But it is a separate non-modal window and
mechanisms
| > for closing it from a separate window are not so easy. I have tried to
| > implement this and ran into problems in the Scenario #2 above.
| >
| > I have thought about an iframe in the same window also.
| >
| > I welcome any ideas on this subject. Perhaps there is a simple solution
I
| > have not yet tried.
| >
|
|
 
B

bruce barker

during postback, the broswer generally shuts down the background thread used
to animate the gif (you have cache it for it to even display - though this
is not reliable). this is why progress pages with an animated gif do a
refresh on a timer.

-- bruce (sqlwork.com)


| Sure they will. What are you talking about?
|
|
| | > animated gifs generally will not run during a postback.
| >
| > -- bruce (sqlwork.com)
| >
| >
| > | > | Why not put the animated GIF in a web form Image control, position it
| > | absolutely on the page and simply show it or hide it via the control's
| > | "visible" property?
| > |
| > |
message
| > | | > | >I have seen this subject tossed around in this forum before. But in
my
| > case
| > | >I
| > | > need a simple solution. I do NOT need to show progress in terms on
| > | > percentage
| > | > complete. But rather I need to show a visual indicator to the user
| > that
| > a
| > | > process is running.
| > | >
| > | > There are two scenarios where I need to show a busy indicator:
| > | >
| > | > Scenario #: The first is when posting to the web server and waiting
| > for
| > a
| > | > response.
| > | >
| > | > Scenario #2: When launching a new window and waiting for it to load.
| > | >
| > | > In either case, there is a delay in waiting for SQL data to be read
| > and
| > | > rendered into HTML content.
| > | >
| > | > I have tried using a popup window with an animated GIF. It can be
| > centered
| > | > on the screen easily. But it is a separate non-modal window and
| > mechanisms
| > | > for closing it from a separate window are not so easy. I have tried
to
| > | > implement this and ran into problems in the Scenario #2 above.
| > | >
| > | > I have thought about an iframe in the same window also.
| > | >
| > | > I welcome any ideas on this subject. Perhaps there is a simple
| > solution
| > I
| > | > have not yet tried.
| > | >
| > |
| > |
| >
| >
|
|
 
S

Scott M.

I have never heard of such a thing. This makes absolutely no sense
whatsoever. A postback causes the page to be re-generated and re-delivered
to the client. The browser does not know that it is receiving a postback.
If in the response to the client there is an HTML image tag that happens to
use an animated graphic as its source, the browser will render it.

I tried this for myself and it works just fine.
 
G

Guest

Yes, but put in a long running process in the same page as the gif. So
you're saying you can flush the response for the gif, and then 30 seconds
later, complete the response?

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top