PEAR::HTML::Progress example: Half Indeterminate
Author: Laurent Laville

examples

# Half Indeterminate

$Date: 2005/07/25 11:33:24 $

- Introduction
- Render options
- Ouput
- PHP source syntax highlight
- Play demo

## Introduction

This example requires :

- PEAR::HTML_Progress 1.2.2 or better (see source at line 12).

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]