From: Gavin Kistner Date: 2004-09-15T21:54:45+09:00 Subject: [OT] Re: web-based progress bar --Apple-Mail-1-981559773 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Sep 15, 2004, at 6:29 AM, David Ross wrote: > To make this HTML 4 compliant and cleaner: Note that you do not need to re-call the reload function, as the act of reloading the page will unload any such timeout you make. If you're progressively writing the response, one way to make a progress bar is to use CSS to progressively overlap longer and longer elements on top of one another. For example (untested):
...
10%
...
25%
...
50%
...
80%
...
DONE
If you're not writing the page but want to show progress of a server-task, you'll need to use a cross-browser XMLHTTP library like XHConn ( http://xkr.us/code/javascript/XHConn/ ) to repeatedly make client-server queries to get the progress, and then just use JS to manipulate the DOM to change the width of your progress bar. --Apple-Mail-1-981559773--