PEAR Progress2 logo

HTML_Progress2 : The Definitive Guide

Chapter 10. How to to implement an AJAX Progress Bar

Table of Contents

History
Design details
Progress bar HTML design
Handle polling loop
Refresh progress bar
Examples (full source code)

History

All begun with request #3985 posted on 2005-03-28.

In 2005, I don't know yet AJAX, that I've learned only recently (end of year 2006). I've searched the most simple architecture that won't break current API, and gave immediat benefits for both PHP4 and PHP5 users.

As there are many Ajax frameworks, I wouldn't imposed usage of one between many, and let free choice opened. So 2.3.0 alpha 1 will begin with a standard DOM XML Ajax driver. Later, others drivers (such as YUI, Prototype, ...), will be available and allow to use specifics features.

While I didn't know PEAR package HTML_AJAX, I've took a day to learn it, and I've begun to rewrite implementation of AJAX progress meter. Why this choice ? Because it's more easy to use either a simple asynchronous transfer with client and server, or have a combo with JS librairies such as Scriptaculous, YUI, ... And this with only one PEAR package (Special thanks to Joshua Eichorn, who made it possible).

So alpha 2 and next versions (alpha, beta, stable) will come with HTML_AJAX 0.5.0 or better.

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