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

desperate to figure this out - need progress bar (barber pole) to work

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 give the spinning effect.

Does any one know how i can implement a progress bar (preferably
barber-pole) on a webpage.

Ticketmaster.com seems to do it. The thing is, I can't figure out if
they're really processing info while their progress bar spins while
nothing is being done & then simply redirects the user. Please look to
see what i am talking about... Look for some availiable tickets &
check to see if some seats are available and see how they simulate
this.

http://www.ticketmaster.com/event/07...&minorcatid=32
Any help would be appreciated.

Thanks

7078895
Nov 18 '05 #1
3 2850
Here is an example of a progress. I adapted this from someone elses code so
I can't take credit for it, but maybe you can use it. It is javascript.

<%@ Control %>

<div id="waiting">
<table id="msgCell" align="center"><tr><td>
Processing please wait ...
</td></tr><tr><td style="font-size:8pt;padding:2px;border:solid black 1px">
<span id="progress1">&nbsp; &nbsp;</span>
<span id="progress2">&nbsp; &nbsp;</span>
<span id="progress3">&nbsp; &nbsp;</span>
<span id="progress4">&nbsp; &nbsp;</span>
<span id="progress5">&nbsp; &nbsp;</span>
<span id="progress6">&nbsp; &nbsp;</span>
<span id="progress7">&nbsp; &nbsp;</span>
<span id="progress8">&nbsp; &nbsp;</span>
<span id="progress9">&nbsp; &nbsp;</span>

</td></tr></table>
</div>

<script language="javascript">
var progressEnd = 9; // set to number of progress <span>'s.
var progressColor = 'blue'; // set to progress bar color
var progressInterval = 500; // set to time between updates (milli-seconds)

var progressAt = 0; //progressEnd;
var progressTimer;

function progress_clear() {
for (var i = 1; i <= progressEnd; i++)
document.getElementById('progress'+i).style.backgr oundColor = 'transparent';
progressAt = 0;
}
function progress_update() {
progressAt++;
{if (progressAt > progressEnd) {
progress_stop()
}
else

{document.getElementById('progress'+progressAt).st yle.backgroundColor =
progressColor
progressTimer = setTimeout('progress_update()',progressInterval);} }

}

function progress_stop() {
progress_clear();
window.clearTimeout(progressTimer);
// hideobj('waitingDiv','');
//hideobj('waiting','none')
}
function startMsg() {
// hideobj('waitingDiv','none');
progress_update();
}
function hideobj(objname,type) {
var div1=document.getElementById(objname);
div1.style.display = type;

}
</script>
"SpamProof" <sp***********@yahoo.com> wrote in message
news:8c**************************@posting.google.c om...
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 give the spinning effect.

Does any one know how i can implement a progress bar (preferably
barber-pole) on a webpage.

Ticketmaster.com seems to do it. The thing is, I can't figure out if
they're really processing info while their progress bar spins while
nothing is being done & then simply redirects the user. Please look to
see what i am talking about... Look for some availiable tickets &
check to see if some seats are available and see how they simulate
this.

http://www.ticketmaster.com/event/07...&minorcatid=32

Any help would be appreciated.

Thanks

7078895

Nov 18 '05 #2
Mike, thanx. If gotten ver for with this.

only thing, how do is get the progress bar to be in it's orginal state
like when the page 1st loads?

I have a link that calls you progress_update function to start the
process and show your progress bar but if when it's done, if the user
click the same link again, nothing happens.

Any advice?

/ra

"vMike" <Mi****************@noYandZ.geZwaYrrenZ.com> wrote in message news:<c0**********@ngspool-d02.news.aol.com>...
Here is an example of a progress. I adapted this from someone elses code so
I can't take credit for it, but maybe you can use it. It is javascript.

<%@ Control %>

<div id="waiting">
<table id="msgCell" align="center"><tr><td>
Processing please wait ...
</td></tr><tr><td style="font-size:8pt;padding:2px;border:solid black 1px">
<span id="progress1">&nbsp; &nbsp;</span>
<span id="progress2">&nbsp; &nbsp;</span>
<span id="progress3">&nbsp; &nbsp;</span>
<span id="progress4">&nbsp; &nbsp;</span>
<span id="progress5">&nbsp; &nbsp;</span>
<span id="progress6">&nbsp; &nbsp;</span>
<span id="progress7">&nbsp; &nbsp;</span>
<span id="progress8">&nbsp; &nbsp;</span>
<span id="progress9">&nbsp; &nbsp;</span>

</td></tr></table>
</div>

<script language="javascript">
var progressEnd = 9; // set to number of progress <span>'s.
var progressColor = 'blue'; // set to progress bar color
var progressInterval = 500; // set to time between updates (milli-seconds)

var progressAt = 0; //progressEnd;
var progressTimer;

function progress_clear() {
for (var i = 1; i <= progressEnd; i++)
document.getElementById('progress'+i).style.backgr oundColor = 'transparent';
progressAt = 0;
}
function progress_update() {
progressAt++;
{if (progressAt > progressEnd) {
progress_stop()
}
else

{document.getElementById('progress'+progressAt).st yle.backgroundColor =
progressColor
progressTimer = setTimeout('progress_update()',progressInterval);} }

}

function progress_stop() {
progress_clear();
window.clearTimeout(progressTimer);
// hideobj('waitingDiv','');
//hideobj('waiting','none')
}
function startMsg() {
// hideobj('waitingDiv','none');
progress_update();
}
function hideobj(objname,type) {
var div1=document.getElementById(objname);
div1.style.display = type;

}
</script>
"SpamProof" <sp***********@yahoo.com> wrote in message
news:8c**************************@posting.google.c om...
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 give the spinning effect.

Does any one know how i can implement a progress bar (preferably
barber-pole) on a webpage.

Ticketmaster.com seems to do it. The thing is, I can't figure out if
they're really processing info while their progress bar spins while
nothing is being done & then simply redirects the user. Please look to
see what i am talking about... Look for some availiable tickets &
check to see if some seats are available and see how they simulate
this.

http://www.ticketmaster.com/event/07...&minorcatid=32


Any help would be appreciated.

Thanks

7078895

Nov 18 '05 #3
Please take a look at Web Progressor at

http://www.SunwestTek.com/wp

Hope this helps.

sp***********@yahoo.com (SpamProof) wrote in message news:<8c**************************@posting.google. com>...
Mike, thanx. If gotten ver for with this.

only thing, how do is get the progress bar to be in it's orginal state
like when the page 1st loads?

I have a link that calls you progress_update function to start the
process and show your progress bar but if when it's done, if the user
click the same link again, nothing happens.

Any advice?

/ra

"vMike" <Mi****************@noYandZ.geZwaYrrenZ.com> wrote in message news:<c0**********@ngspool-d02.news.aol.com>...
Here is an example of a progress. I adapted this from someone elses code so
I can't take credit for it, but maybe you can use it. It is javascript.

<%@ Control %>

<div id="waiting">
<table id="msgCell" align="center"><tr><td>
Processing please wait ...
</td></tr><tr><td style="font-size:8pt;padding:2px;border:solid black 1px">
<span id="progress1">&nbsp; &nbsp;</span>
<span id="progress2">&nbsp; &nbsp;</span>
<span id="progress3">&nbsp; &nbsp;</span>
<span id="progress4">&nbsp; &nbsp;</span>
<span id="progress5">&nbsp; &nbsp;</span>
<span id="progress6">&nbsp; &nbsp;</span>
<span id="progress7">&nbsp; &nbsp;</span>
<span id="progress8">&nbsp; &nbsp;</span>
<span id="progress9">&nbsp; &nbsp;</span>

</td></tr></table>
</div>

<script language="javascript">
var progressEnd = 9; // set to number of progress <span>'s.
var progressColor = 'blue'; // set to progress bar color
var progressInterval = 500; // set to time between updates (milli-seconds)

var progressAt = 0; //progressEnd;
var progressTimer;

function progress_clear() {
for (var i = 1; i <= progressEnd; i++)
document.getElementById('progress'+i).style.backgr oundColor = 'transparent';
progressAt = 0;
}
function progress_update() {
progressAt++;
{if (progressAt > progressEnd) {
progress_stop()
}
else

{document.getElementById('progress'+progressAt).st yle.backgroundColor =
progressColor
progressTimer = setTimeout('progress_update()',progressInterval);} }

}

function progress_stop() {
progress_clear();
window.clearTimeout(progressTimer);
// hideobj('waitingDiv','');
//hideobj('waiting','none')
}
function startMsg() {
// hideobj('waitingDiv','none');
progress_update();
}
function hideobj(objname,type) {
var div1=document.getElementById(objname);
div1.style.display = type;

}
</script>
"SpamProof" <sp***********@yahoo.com> wrote in message
news:8c**************************@posting.google.c om...
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 give the spinning effect.

Does any one know how i can implement a progress bar (preferably
barber-pole) on a webpage.

Ticketmaster.com seems to do it. The thing is, I can't figure out if
they're really processing info while their progress bar spins while
nothing is being done & then simply redirects the user. Please look to
see what i am talking about... Look for some availiable tickets &
check to see if some seats are available and see how they simulate
this.

http://www.ticketmaster.com/event/07...&minorcatid=32

Any help would be appreciated.

Thanks

7078895

Nov 18 '05 #4

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

Similar topics

10
by: Rob | last post by:
Hi all, Is it possible to do a progress bar of gauge bar in asp? If possible could someone show some sample code on it. Many thanks, Rob
6
by: rob | last post by:
Hi All, I have an asp script which updates upto 300000 records each time it is run. I would like to have a textbox which says records progressed : then in increments of 100 or 1000 whilst the...
5
by: Tank | last post by:
I have had this post up here when i was trying to figure out how to make leading zeros and have been able to fudge that to work. I am now have trouble getting the loop that makes the folders to...
4
by: Jeff B | last post by:
I am having a very perplexing problem with setting the user's roles. I have tried to figure this out for 2 days now. When the user logs in to the site, I retrieve the roles from the database and...
21
by: Peter | last post by:
Good luck learning quite a new language, good luck with your 21MB+ programs, good luck with the distribution of your applications, good luck when Microsoft releases another new version of...
7
by: Big Dave | last post by:
I'm going insane!!!!! I set a font color using documentDOTexecuteCommand("ForeColor"). That works, but now I'm trying to read the color in another method. I used...
3
by: Brian Blais | last post by:
Hello, I have an odd kind of Heisenbug in what looks like a pretty simple program. The program is a progress bar code I got at the Python Cookbook: ...
1
by: DOA | last post by:
simulation of the sleeping barber problem. The given program first creates a barber thread. The barber thread calls callNext to get a customer, waits a random amount of time (to simulate the time it...
19
by: fx5900 | last post by:
Hi, i am trying to convert an .osm (openstreetmap) file into gml format and finally to shapefile given this wiki info http://wiki.openstreetmap.org/index.php/GML. I'm using windows and when i...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.