Examples TOCexamples

Half Indeterminate

$Date: 2004/08/10 18:12:29 $

 Table of contents

Introduction

This example requires :


This example will run a basic ProgressBar in indeterminate mode (without monitor) until it reached a limit-level (elapse time > 12 seconds).

Actions to wait are allowed by user callback myProgressHandler defined on lines 20 to 41.

This callback is attached on progress bar at line 61. If you forget to do that, default will be to wait, done by HTML_Progress::sleep() method.

[Top]

 Render options

Here are options to build this progress bar :
background-color = #e0e0e0
HTML_Progress_UI::setProgressAttributes()
Here are options to build this progress bar string (percent text info):
color            = #996
background-color = #CCCC99
HTML_Progress_UI::setStringAttributes()
Here are options to build the progress bar cells :
active-color   = #996
HTML_Progress_UI::setCellAttributes()
Here are options to run the progress bar :
speed     = 200
increment = 10
HTML_Progress::setAnimSpeed()
HTML_Progress::setIncrement()

[Top]

 Output

Screenshot

[Top]

 PHP source syntax highlight

Open source listing in a new window.

[Top]

 Play demo

Run the script.

[Top]