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

AJAX Made Easy

Old 01-11-2009, 12:59 PM   #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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Upload progress bar matrix AJAX Usage 2 06-03-2009 01:39 PM
Progress Upgrades SOA-Based Semantic Integrator microbee AJAX Help 0 02-21-2008 09:54 PM
AJAX Upload progress monitor for Commons Ajaxking AJAX Articles 1 11-25-2006 06:49 AM


All times are GMT -4. The time now is 11:29 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright ©2006 - 2009, AJAXwith.com