Solved

Javascript progress window while page is loading

Posted on 2006-11-21
2
479 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
[X]
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
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…
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…

762 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