[thelist] Page load progress indicator

Chris Marsh Chris.Marsh at Callserve.com
Wed May 4 10:24:18 CDT 2005


Joe

> > > setInterval to increase the width of the div by a 
> percentage over time. The
> > > onload event handler then turned the whole thing off.
> > 
> > What happened to users without JavaScript?
> > 
> Perhaps a more interesting question is, what happens when a network
> problem occurs, and the user sees the progress bar grow beyond 100%,
> 200%, 300%, ...

One has no way of knowing how long the progress bar will be in play for -
any hard limit would be arbitrary. Consequently, one would specify a maximum
width and an actual width for the progress bar.

a = actual width
m = maximum width 

r = m - a

For each increase of the width of the div, one would calculate r and then
add a fixed percentage of r to a, then apply the resultant value to the
width of the div.

If a network problem occurs, the bar will slow first to a crawl and then to
a perceived standstill. This is similar to what Windows users will often
experience with application progress bars, so they will not be confused when
this happens in a web page or application. 

Regards

Chris Marsh

_______________________________________________________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and delete the email immediately. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. 

Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.

Finally, the recipient should check this email and any attachments for the presence of viruses. Callserve Communications accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service.


More information about the thelist mailing list