473,324 Members | 2,254 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,324 software developers and data experts.

Progress bar problem

Dear:

I need to make some progress action when doing long running task to inform
user that something is happening, so I did the following:

1. download a gif file that do some download animation.
2. in my aspx page add DIV and put the image inside it and make it runat
server with initial display as none.
3. in page load for send button i did
btnSend.Attributes["onclick"] = "return SwapButton()"
4. in client side of page the SwapButton function
function SwapButton()
{
divProgress.style.display = 'block'; //Display progress image
oButton = document.getElementById('btnSend');
if(oButton != null)
oButton.style.display = 'none' //hide send button
}

5 . and at the end of OnClick function of btnSend on codebehind i did
btnSend.Attributes["DISPLAY"] = "block"
divProgress.Attributes["DISPLAY"] = "none"

the PROBLEM i have that the animated gif image is not doing the animation
work , it is freezed , WHY?
what should I do to let the animated gif appears animated?

Best Regards
Nov 19 '05 #1
2 1554
when IE does a get/post, it normally stops the background thread that
implements the animation. you need to use the meta tag to poll for results
if you want the gif to work.

-- bruce (sqlwork.com)

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
| Dear:
|
| I need to make some progress action when doing long running task to inform
| user that something is happening, so I did the following:
|
| 1. download a gif file that do some download animation.
| 2. in my aspx page add DIV and put the image inside it and make it runat
| server with initial display as none.
| 3. in page load for send button i did
| btnSend.Attributes["onclick"] = "return SwapButton()"
| 4. in client side of page the SwapButton function
| function SwapButton()
| {
| divProgress.style.display = 'block'; //Display progress image
| oButton = document.getElementById('btnSend');
| if(oButton != null)
| oButton.style.display = 'none' //hide send button
| }
|
| 5 . and at the end of OnClick function of btnSend on codebehind i did
| btnSend.Attributes["DISPLAY"] = "block"
| divProgress.Attributes["DISPLAY"] = "none"
|
| the PROBLEM i have that the animated gif image is not doing the animation
| work , it is freezed , WHY?
| what should I do to let the animated gif appears animated?
|
| Best Regards
|
|
Nov 19 '05 #2
May you please provide me with more info about how to use the meta tag to
poll for results, i never heard about this?

Thanks

"bruce barker" wrote:
when IE does a get/post, it normally stops the background thread that
implements the animation. you need to use the meta tag to poll for results
if you want the gif to work.

-- bruce (sqlwork.com)

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
| Dear:
|
| I need to make some progress action when doing long running task to inform
| user that something is happening, so I did the following:
|
| 1. download a gif file that do some download animation.
| 2. in my aspx page add DIV and put the image inside it and make it runat
| server with initial display as none.
| 3. in page load for send button i did
| btnSend.Attributes["onclick"] = "return SwapButton()"
| 4. in client side of page the SwapButton function
| function SwapButton()
| {
| divProgress.style.display = 'block'; //Display progress image
| oButton = document.getElementById('btnSend');
| if(oButton != null)
| oButton.style.display = 'none' //hide send button
| }
|
| 5 . and at the end of OnClick function of btnSend on codebehind i did
| btnSend.Attributes["DISPLAY"] = "block"
| divProgress.Attributes["DISPLAY"] = "none"
|
| the PROBLEM i have that the animated gif image is not doing the animation
| work , it is freezed , WHY?
| what should I do to let the animated gif appears animated?
|
| Best Regards
|
|

Nov 19 '05 #3

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

Similar topics

1
by: Elliott B. | last post by:
We have been asigned a project required by our parent company to have our sales people fill out a form before billing any order to our customers. Our main system runs a Progress db, that's where...
3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
3
by: SpamProof | last post by:
I got an animated gif that is a barber pole spinning that I want to use as a progress bar. The problem is that is stops spinning (shows 1 frame) when my browser is processing a submited request...
7
by: Oleg | last post by:
I have a web form let's say 'YYZ.aspx'. It has an iframe in it. When it loads it shows progress bar in IE this way: loading for page then again loading for page in iframe. This part is fine....
7
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. ...
4
by: hzgt9b | last post by:
Usig VB .NET 2003, I'm writing a simple app that copies 1 or more files. Requiremtns state that I need two progress bars one for current file copy progress and one for overall progress. My...
8
by: WhiteWizard | last post by:
I guess it's my turn to ASK a question ;) Briefly my problem: I am developing a Windows app that has several User Controls. On one of these controls, I am copying/processing some rather large...
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...
5
by: Aggelos | last post by:
Hello I am doing sevreral scripts like sending a newsletter that might take a while to finish first to prevent the browser from timing out and to keep the user informed of the process progress I...
5
by: CCLeasing | last post by:
For an application I'm creating I want to create a 'fake' progress bar. By fake I mean a progress bar that looks like it's doing something but actually isn't. I know philosophically this isn't...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.