473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Show Progress in a Web Form

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.

Nov 18 '05 #1
7 2507
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

"Steve Kallal" <St*********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
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.

Nov 18 '05 #2
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?
"Steve Kallal" <St*********@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
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.

Nov 18 '05 #3
animated gifs generally will not run during a postback.

-- bruce (sqlwork.com)
"Scott M." <s-***@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| 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?
|
|
| "Steve Kallal" <St*********@discussions.microsoft.com> wrote in message
| news:79**********************************@microsof t.com...
| >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.
| >
|
|
Nov 18 '05 #4
Sure they will. What are you talking about?
"bruce barker" <no***********@safeco.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
animated gifs generally will not run during a postback.

-- bruce (sqlwork.com)
"Scott M." <s-***@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| 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?
|
|
| "Steve Kallal" <St*********@discussions.microsoft.com> wrote in message
| news:79**********************************@microsof t.com...
| >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.
| >
|
|

Nov 18 '05 #5
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)
"Scott M." <s-***@nospam.nospam> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
| Sure they will. What are you talking about?
|
|
| "bruce barker" <no***********@safeco.com> wrote in message
| news:%2******************@tk2msftngp13.phx.gbl...
| > animated gifs generally will not run during a postback.
| >
| > -- bruce (sqlwork.com)
| >
| >
| > "Scott M." <s-***@nospam.nospam> wrote in message
| > news:%2****************@TK2MSFTNGP11.phx.gbl...
| > | 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?
| > |
| > |
| > | "Steve Kallal" <St*********@discussions.microsoft.com> wrote in
message
| > | news:79**********************************@microsof t.com...
| > | >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.
| > | >
| > |
| > |
| >
| >
|
|
Nov 18 '05 #6
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.

"bruce barker" <no***********@safeco.com> wrote in message
news:uD****************@TK2MSFTNGP10.phx.gbl...
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)
"Scott M." <s-***@nospam.nospam> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
| Sure they will. What are you talking about?
|
|
| "bruce barker" <no***********@safeco.com> wrote in message
| news:%2******************@tk2msftngp13.phx.gbl...
| > animated gifs generally will not run during a postback.
| >
| > -- bruce (sqlwork.com)
| >
| >
| > "Scott M." <s-***@nospam.nospam> wrote in message
| > news:%2****************@TK2MSFTNGP11.phx.gbl...
| > | 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?
| > |
| > |
| > | "Steve Kallal" <St*********@discussions.microsoft.com> wrote in
message
| > | news:79**********************************@microsof t.com...
| > | >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.
| > | >
| > |
| > |
| >
| >
|
|

Nov 18 '05 #7
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
"Scott M." <s-***@nospam.nospam> wrote in message
news:#A**************@TK2MSFTNGP12.phx.gbl...
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.

"bruce barker" <no***********@safeco.com> wrote in message
news:uD****************@TK2MSFTNGP10.phx.gbl...
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)
"Scott M." <s-***@nospam.nospam> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
| Sure they will. What are you talking about?
|
|
| "bruce barker" <no***********@safeco.com> wrote in message
| news:%2******************@tk2msftngp13.phx.gbl...
| > animated gifs generally will not run during a postback.
| >
| > -- bruce (sqlwork.com)
| >
| >
| > "Scott M." <s-***@nospam.nospam> wrote in message
| > news:%2****************@TK2MSFTNGP11.phx.gbl...
| > | 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?
| > |
| > |
| > | "Steve Kallal" <St*********@discussions.microsoft.com> wrote in
message
| > | news:79**********************************@microsof t.com...
| > | >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.
| > | >
| > |
| > |
| >
| >
|
|


Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Randy | last post by:
Hi, is it possible to show the progress of a big file being copied e.g. in a "progressbar"? I tried to use file.copy - but this seems to make no sense :-( Thanks in advance, Randy
6
by: Shawn Regan | last post by:
Hello, What is the best practice to show a window/form of some animation while processing is going on in the back ground. I want the user to see something while some processing is taking...
5
by: B-Dog | last post by:
I'm trying to build a custom progress bar that will run as some subs are running in the background but when I open the custom form with the progress bar on it using the showdialog, none of the subs...
7
by: Loane Sharp | last post by:
Hi there I'm currently using WebClient.DownloadFile to download a file from the server to my local disk. Is there a way to show the progress of the file download? Best regards Loane
2
by: Holysmoke | last post by:
Hi, I have a asp.net form with a button in it. In the onlclick event of button I want to write a function which does some a bit of work with a timespan of 15 seconds. So I want to show a image...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
0
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
2
by: mcw.willart | last post by:
Hi, I use a backgroundworker to get the total size of a homeshare (as it is a bit time-consuming). Wat i would like to do, is show the progress, but at start i don't know how much files/folders...
4
by: frozenade | last post by:
Hello all.. merry christmas.. :) I need to show progress status when a button is clicked. I use this script. but I know that this code is still very bad. <html>
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.