Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascript progress window while page is loading

Posted on 2006-11-21
2
Medium Priority
?
489 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 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

916 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