Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Javascript progress window while page is loading

Posted on 2006-11-21
2
478 Views
Last Modified: 2012-08-13
How does one check the progress of the file loading?

Setup..
User clicks link on web page to open Excel file in a new browser window.
File sizes can be 2MB + . Over a crappy connection they could take 10-20 seconds to load.

Looking to do...
Pop another window (gets focus) that has a static image that says something like "Loading....This could take up to a minute."
Once the Excel file is loaded into the new window, signal the popup window to close.
0
Comment
Question by:SWRO
2 Comments
 
LVL 3

Accepted Solution

by:
gdevianne earned 500 total points
ID: 17993310
I'm not sure there is a way to know the progress of the download of an excel or pdf(in my case) before it shows in the browser.
What i've done once was
- user click on the link
- page saying "loading ..." opens that has a script on onload="location.href='thefile.xls'"

I actually changed the "loading..." text with a flash animation showing the typical movie countdown.

All that to show the user something was happening ...
once the file finishes to download, it loads normally in the browser in place of the loading text.
guillaume
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question