![]() HTML_Progress2 : The Definitive Guide
|
In previous example (pear logo) we have introduced that progress meter can handle two strategies called moveStep and moveNext.
What are the difference, and when use one rather than the other ? Here is the purpose of this section.
When we don't know how many step a progress meter should handle, or if you want to force display to a special value, the right strategy is the most simple : moveNext.
Progress meter will be refresh with : new value = previous value + increment
. Increment is defined by
setIncrement()
method (default = +1).
What you must do:
moveNext()
method to refresh progress meter. When task can be divided in many part (knew at runtime) as pear logo example, the right strategy is : moveStep.
What you must do:
progress meter max value / task count
This number should be integer, and round fractions up. moveStep()
method to refresh progress meter. HTML_Progress2 : The Definitive Guide | v 1.0.0 : September 23, 2005 |