I have this website where when a user comes in, a lot of files get downloaded (.class ). It takes a while, and as of now there is no visual indication to the user indicating the status of download. As a matter of fact, the user doesnt even that there is something being downloaded in the background. So, what they see is a browser window that doesnt do a whole lot. I would like to show a progress bar kinda thing. I figured out how to show a progress bar(thanks to javaranch search feature). However, from what I have seen, the progress bar is being displayed as an applet, which means the progress bar won't show up on IE 6 by default. I can't expect all of my users to have JRE. How can I get around this.
If the class files are going to run in IE's Java VM, pack the files into a cab archive and download this instead. IE will then display a progress bar on the bottom just like it does when downloading a large image. For more information on and tools for packing class files into a cab archive, get the MS Java SDK from http://www.microsoft.com/java/ If these class files will be running in the plug-in, the new JDK 1.4.0 plugin shows a progress bar (at least it did in the betas, I haven't tried it out in the release version).
David G. Risner<br />Software Engineer<br />California State University, Los Angeles
Another suggestion would to take a more simplest approach. Have an intermediate page that loads prior to your "long loading" task that gives some sort of visual indication to the user what is happening. The intermediate page could say at minimum "Page is loading, please wait..." or you could find some sort of nifty animated gif to keep the user distracted. James.
Joined: Jun 25, 2001
Thanks james, I'm working on your idea. But I'm not quite sure when to stop the "page loading" message. How do I know, if the download of the big jar is completed?
Joined: Jun 26, 2001