Howto: Example HTML ProgressBar using XMLHttpRequest

Sometimes an application will need to launch into a database/CPU intensive operation - and this often causes 'Server timeout' or some kind of timeout error.

Optimizing the operation, or advising your client-user against using the browser, does not always provide futile results.

Another way is to bite the bullet and solve it - without the ugly refresh-page - by using the XMLHttpRequest object (of Google-Suggest fame).

Source code (right-click, save-as..): html, javascript

 
Sample Form

 

 

Copyleft (C) Chew Choon Keat 2005