Solved

Javascript progress window while page is loading

Posted on 2006-11-21
2
476 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jquery get each value 2 30
Google Sheets script efficiency 2 23
how to handle long text strings in javascript or ajax 1 28
Angular - code works but need to make a change 14 30
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

785 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