By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,381 Members | 1,626 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,381 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.