Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress Bar on a HTML document Link

Status
Not open for further replies.

HelpUs

Programmer
Sep 4, 2003
7
US
Hi all,

I have a simple html page which has links to different forms in .pdf,.doc and .xls format. Some of them are too bulky that it takes time to load, leaving the impression that the browser is hanged. I received several calls from my users, complaining that the browser hangs on clicking the links.

I think it will be a good idea to implement progress bar to show the user the job is in progress. I found few JavaScript. All them are suggesting to put it on ONLOAD="runscript()" of the body tag.

Since the PDF file or DOC file will load the either on a new window or on the same window how can I put it on ONLOAD event of the new document. Second thing how I will stop the progress bar.
 
What's wrong with the standard browser progress bar? - In IE, the blue one at the bottom of the screen.
 
HelpUs, the only way you can do this is if you have some kind of a Flash pre-loader, or a DHTML pre-loader script before the page.
But I think its much simpler for you to make a note on the HTML page itself stating The document you are trying to access may take a while to load., or something to that effect.
This is a good example of a loader bar in DHTML:
I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage.
It's no big deal really...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top