472,973 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,973 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 2834
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.