473,804 Members | 3,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Attribu tes["onclick"] = "return SwapButton()"
4. in client side of page the SwapButton function
function SwapButton()
{
divProgress.sty le.display = 'block'; //Display progress image
oButton = document.getEle mentById('btnSe nd');
if(oButton != null)
oButton.style.d isplay = 'none' //hide send button
}

5 . and at the end of OnClick function of btnSend on codebehind i did
btnSend.Attribu tes["DISPLAY"] = "block"
divProgress.Att ributes["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 1575
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*********@di scussions.micro soft.com> wrote in message
news:0A******** *************** ***********@mic rosoft.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.Attribu tes["onclick"] = "return SwapButton()"
| 4. in client side of page the SwapButton function
| function SwapButton()
| {
| divProgress.sty le.display = 'block'; //Display progress image
| oButton = document.getEle mentById('btnSe nd');
| if(oButton != null)
| oButton.style.d isplay = 'none' //hide send button
| }
|
| 5 . and at the end of OnClick function of btnSend on codebehind i did
| btnSend.Attribu tes["DISPLAY"] = "block"
| divProgress.Att ributes["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*********@di scussions.micro soft.com> wrote in message
news:0A******** *************** ***********@mic rosoft.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.Attribu tes["onclick"] = "return SwapButton()"
| 4. in client side of page the SwapButton function
| function SwapButton()
| {
| divProgress.sty le.display = 'block'; //Display progress image
| oButton = document.getEle mentById('btnSe nd');
| if(oButton != null)
| oButton.style.d isplay = 'none' //hide send button
| }
|
| 5 . and at the end of OnClick function of btnSend on codebehind i did
| btnSend.Attribu tes["DISPLAY"] = "block"
| divProgress.Att ributes["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
2142
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 our billing, contract and order information resides. For this, we thought that it would be easy on the sales people to design a web form fill out all the required information and send it to Progress db. Our challenge has been that our web...
3
2689
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" listing in my address book and (optionally) their name listed on my "news" page of my birtle.com website (listed as "Jane Smith is a Programming GOD") for at least a month. Why not take a moment to read more and possibly boost your ego to all time...
3
2869
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 that might take 5-8 seconds. I tried to putting the gif in a sepearate page and referencing it using iframe thinking that if the gif is on another page & calling it from my main page, it would not be affected by my submittals and continue to...
7
5498
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. Problem is when I put page 'YYZ.aspx' in iframe of another page, let's say 'Home.aspx'. In short: (page (page in iframe(page in iframe) ) ) Progress bar shows ones (fast), then second time(kind of fast) and then third time. And this time it never...
7
5393
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. I have tried doing this and using a progress bar that counts up to 100 and then zeros down so that it should be constantly moving while the main or background windows finishes loading. The problem is that the "in progress window" doesn't display...
4
3364
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 problem is that I'm not sure how to obtain progress about a file as it is being copied. I've read some thread about using the SHFileOperation API but I'm lost as to how to implemt that in .NET. Can someone give me a pointer to some doco? Also an...
8
4759
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 binary files, so have created a second thread to do the processing. This thread is set to be the LOWEST priority. So far so good with all that. HOWEVER, I am trying to provide some feedback to the user (the bane of our existence!) via a progress...
1
4120
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 framework 1.1). The application implements a Progress Bar webcontrol, that pops up in a window, using the HttpHandler interface, on the event of a button click. The handler's process request routine reads the status of the progress by querying the...
5
4046
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 want to use a loader progress bar. I did a plain expanding gif but the problem is that it prevents me at the end from redirecting. Do you have in mind any nice script that might do that? AJAX would be a good solution. Or something that will pop...
5
6938
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 sound. But my little app is a 'fake' app and is designed to look like another - hence this seeming crazy situation of needing to fake a progess bar. PROBLEM.
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9130
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.