PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Handle polling loop

You are free to handle your user task as you want, but to refresh the progress meter status, you must at least return an array with the key "percentage" that identify the new value (from 0 to 100) of progress.

You can also return some new label values.

[Note] Note

You don't have to return all label defined if you want to change only one.

See RequestStatus.class.php file, getFullStatus() method for sample of an implementation.

HTML_Progress2 : The Definitive Guide v 2.4.0 : April 20, 2007