473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Does this exist anywhere in the world? (javascript download progress meter)

Hello,

I've read quite a bit of discussion on different approaches of how to
create a download progress meter that can be implemented into a Web
site. I understand that by the very nature of the way the download
transport is handled that this cannot "automatically" be done...
upload progress meters exist, but not download. However, I've seen
different theories on how it could be done if one knows the file size.
Is anyone aware of a working download meter script

written in JavaScript?

Sincerely,

Julia
Jul 20 '05 #1
2 6131
rf
<DHTML crosspost snipped>

"Julia Briggs" <ju*******@yahoo.com> wrote in message
news:c4**************************@posting.google.c om...
Hello,

I've read quite a bit of discussion on different approaches of how to
create a download progress meter that can be implemented into a Web
site.


Downloading what? The web page or a file?

If the former then the page has to be downloaded before the javascript runs.
By the time you get to report on it it has already happened.

If the latter then the download process is not even handled by the browser,
it is hived off to a seperate process. Any javascript running in the web
page has no knowledge of this process.

Besides, the download process itself has a progress bar.

What exactly are you trying to achieve?

Cheers
Richard.
Jul 20 '05 #2
rf

"Julia Briggs" <ju*******@yahoo.com> wrote in message
news:c4**************************@posting.google.c om...
"rf" <ma**********@the.time> wrote in message news:<_b****************@news-server.bigpond.net.au>...
I want to have users who download large PDF documents that are
normally automatically loaded into the browser presented with a
download progress bar.


By the time the browser has launched the adobe plug in and given it control
so it can download the pdf your web page is long gone. The web page being
displayed now is the one containing the pdf (well, the plug in anyway).

Even if you could somehow stay there (by for example loading the pdf into a
second frame while your javascript lives in a first frame) there is no way
you can interrogate the adobe plug in to determine how much it has loaded.
Even adobe may not know how big the file is. A server is not obliged to
provide this information. I doubt that adobe would even care. It would just
read the file till it got to the end of it.

You are better off putting something on your page, near the link, like
<p>This is a 500KB pdf file, it may take a while to download</p>

Your viewer will have some idea about how long such a download should take.

Cheers
Richard.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Duane Phillips | last post by:
Greetings. Can an app be developed in .Net to deploy like local installed apps, and then later reuse that code and object set to deploy on a web server? I have read a little about WEB vs. RICH...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
1
by: Doug | last post by:
In I.E. 6 (and probably other versions as well), there is a sort of progress meter in the panel at the bottom of the window. This meter increments a few pixels at a time when the browser is trying...
4
by: bfulford | last post by:
I have a macro that needs to have a progress meter displayed since it is long running. I moved the Macro's instructions to a table and pulled those records into a recordset that is looped through....
1
by: Jake Barnes | last post by:
I've SiteMeter one one of my sites. It's keeping track of how many times people view my site. Unfortunately, when I try to open a page of my site using window.open(), SiteMeter hijacks the window...
11
by: brother52 | last post by:
I am using My.Computer.FileSystem.CopyFile() to copy a bunch of files from one directoy to another, and would like to display a progress bar on the screen for each file being copied. Is this...
2
by: Adam R | last post by:
Looking for an upload progress meter which can works with 'non-patched' PHP4. -- -------------------------------------- Adam Raszkiewicz Brothers-in-arts.com...
5
by: maniesh | last post by:
I want to complete a project and I want to place a timed progress bar on my splash screen, I want to find out a method of timing my progress bar to update every 10 seconds. here's what I got so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.