473,378 Members | 1,152 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,378 software developers and data experts.

progress bar

Hello,

I have a window where it could take a while to display the info. While
waiting I want to display a "progress bar". Once the info is ready to be
displayed I want the "progress bar" to disappear.

Can this easiest be done with an animated gif ? if so, how do I make
that gif disappear with php ?

thanks,

Ron
Nov 2 '07 #1
3 1802
On Fri, 02 Nov 2007 16:09:50 -0400, Ron Croonenberg wrote:
Hello,

I have a window where it could take a while to display the info. While
waiting I want to display a "progress bar". Once the info is ready to be
displayed I want the "progress bar" to disappear.

Can this easiest be done with an animated gif ? if so, how do I make
that gif disappear with php ?
You can't.

PHP is a server-side language. By the time the page has been delivered to
the browser the PHP script has finished processing.

You'd have to do this is a client-side language like JavaScript.

--
I told you this was going to happen.

Nov 2 '07 #2
On Nov 2, 1:09 pm, Ron Croonenberg <r...@depauw.eduwrote:
Hello,

I have a window where it could take a while to display the info. While
waiting I want to display a "progress bar". Once the info is ready to be
displayed I want the "progress bar" to disappear.

Can this easiest be done with an animated gif ? if so, how do I make
that gif disappear with php ?

thanks,

Ron
This isn't possible with PHP alone. The best way to do this now days
is to use javascript. With javascript you can now create a wide range
interactive effects on your website using what is known as "AJAX". Do
a search on google to find some tutorials regarding the subject. I'll
hint you in the obj.hide() direction :)

Nov 3 '07 #3
Ron Croonenberg wrote:
I have a window where it could take a while to display the info. While
waiting I want to display a "progress bar". Once the info is ready to
be displayed I want the "progress bar" to disappear.

Can this easiest be done with an animated gif ? if so, how do I make
that gif disappear with php ?
When you press the submit button, the page will wait to get replaced. This
is your queue to show the progress bar.

If the upload script sends a Location header after it has finished, you can
let the page reload without the progress bar.
JW
Nov 3 '07 #4

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

Similar topics

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: 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. ...
1
by: scorpion53061 | last post by:
this code came from cor and I think Armin authored it. I am trying to download an access database and track its progress. It is reading the size fo the file but I am unsure of how to get the...
8
by: Brian Henry | last post by:
I created a smooth progress bar with this code.. but if you update the values in a row quickly of it and watch it on screen it flickers... how would i change this to reduce the flickering?...
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...
15
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
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...
1
by: Bob | last post by:
Hi, I am having trouble seeing how this bolts together. The UI starts a process which involves a long running database update. All Database activity is handled by a class called DT. DT has a...
0
by: jags_32 | last post by:
Hello We use MFG-PRO as our ERP system which in turn uses Progress databases. In the old version of SQL 2000, using DTS packages, we used to set the code page via command prompts and execute DTS...
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...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.