Re: Loading progress bar



Hi,

You could redirect using javascript. For example:

echo '<script type="text/javascript">window.location =
\'done.php\'</script>';

An image would work. Javascript progress meters are available too:

http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm
http://www.dynamicdrive.com/dynamicindex11/dhtmlprogress2.htm

AJAX upload progress meter in PHP:

http://wiki.bluga.net/HTML_AJAX/ProgressMeter

Hope that's helpful.

Aggelos wrote:
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 up... I don't know what to
think. It is the first time I am doing that.
The progress depends on the loop progress ... so a simple counter and
count(array) would be enough variables to create something.

If you've done something similar you'll know what I am talking about.
Thanks

Aggelos wrote:
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 up... I don't know what to
think. It is the first time I am doing that.
The progress depends on the loop progress ... so a simple counter and
count(array) would be enough variables to create something.

If you've done something similar you'll know what I am talking about.
Thanks

.



Relevant Pages

  • Re: .forward file seems to be ignored
    ... >> but no progress. ... >> .forward file) of redirecting all mail? ... Put your homedir permission back the way they were ... Prev by Date: ...
    (Fedora)
  • Re: Shopping Cart not updating until refresh
    ... I have managed to make progress by adding a sleep before redirecting. ... This allows time for the the update to run on the database before ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Katrina Recovery - More Photo Journal
    ... last month and they said this was the first time they've ... See all my masters at: http://www.PossiblePlaces.com/CatNipped/ ... (There are a *LOT* of pictures since she hasn't sent any since March ... is the first I'm seeing of their progress, too) - but it's worth it just ...
    (rec.pets.cats.anecdotes)
  • Re: AJAX Page Loading Failure on Some Browsers
    ... the updateprogress control is designed to run during an async postback. ... the ajax code receives this, and sets the document.location to the new url (to do the redirect). ... if you are doing this on your local box, the redirect response may come before the progress bar even has chance to start. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problem using Commons fileupload for progress bar with Javaworld example
    ... I'm using Apache Commons for FileUpload to do a progress bar using ... I'm using prototype for ajax. ... I found that when the code hits 'upload.parseRequest', the servlet ... I can't track the file upload even using the ProgressListener ...
    (comp.lang.java.programmer)