Re: need "pop-up" in progress alert

From: Date: Fri, 18 Apr 2008 17:29:54 +0000
Subject: Re: need "pop-up" in progress alert
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-273255@lists.php.net to get a copy of this message
On Fri, Apr 18, 2008 at 09:43:07AM -0700, bruce wrote: > hi.. > > if you have an action that the server is performing, and the action is going > to take some amount of time, then you're going to need to provide some form > of "progress" bar, that's a function of jscript/ajax on the client side... > > you can't use just php, as php runs on the server, which is where your > action is also running. the unfortunate situation is that a php 'progress > bar' wouldn't be invoked until after the action has completed... unless you > had a periodic timer within the "action" that periodically displayed > something to the page (which could be possible) > > > action > { > loop through the action/task > do some events > display "x" //for progress bar > continue with the event processing > end loop > } > > the other, probably better option would be to have a progress area, that > was/is a jscript/ajax based, that talked/polled the server to determine the > overall status of the "action" as it's being performed. > > what did a google search on php/ajax progress bar return? > > peace > Or the name of the file, kind of like a log. -- Nick Stinemates (nick@stinemates.org) http://nick.stinemates.org

« previous php.general (#273255) next »