AJAX Forums

Ajax: php progress bar

This is a discussion on Ajax: php progress bar within the AJAX Help forums, part of the Beginners AJAX category; Hi there, I started designing this little project as I wanted a progress bar to let a user know how far through a list of php functions they are. There ...


Go Back   AJAX Forums > Beginners AJAX > AJAX Help

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 01-11-2009, 11:59 AM   #1 (permalink)
Junior Member
 
Join Date: Jan 2009
Posts: 1
Rep Power: 0 tutor is on a distinguished road
Ajax: php progress bar

Hi there,

I started designing this little project as I wanted a progress bar to let a user know how far through a list of php functions they are.

There is no way of doing this with php alone, since php is all processed on the client.

however, the idea I had in mind was to
1) calculate how many steps the php function has
then 2) run through each step,
- after each step the page would upate to diplay the progress. Obviously doing this with ajax would be preferable


However, Im a little stuck.

So far I've got ajax to work with a button:
<input type='button' name= "updateWithBut" onclick="getNoOfCycles(this.value);getCurrentCycle ('1', '100'); ">

This gets the data from php via some ajax script (and correctly updates 2 input boxes)

However. I cant figure out a way to do one cycle after another and update the page after each cyle has processed

If I cycle through the javascript, it only sends back the final response

if I try to make the button do various functions:
<input type='button' name= "updateWithBut" onclick="getNoOfCycles(this.value);getCurrentCycle ('1', '100');getCurrentCycle('2', '100');getCurrentCycle('3', '100');...getCurrentCycle('nth', '100');">
once again it only sends back the final response

Does anyone know a way of doing this, or know what I should be looking into?
__________________
ajax noobie
tutor is offline   Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Upload progress bar matrix AJAX Usage 2 06-03-2009 12:39 PM
AJAX Jobs : PHP Upload Progress Bar by qrpike admin AJAX Freelance Jobs 0 09-26-2008 07:30 PM
AJAX Jobs : Progress bar on SendScript by AbsoluteCM admin AJAX Freelance Jobs 0 06-06-2008 04:52 PM
Progress Upgrades SOA-Based Semantic Integrator microbee AJAX Help 0 02-21-2008 08:54 PM
AJAX Upload progress monitor for Commons Ajaxking AJAX Articles 1 11-25-2006 05:49 AM


All times are GMT -4. The time now is 06:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com