"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.