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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Julia Briggs

    #1

    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 "automatica lly" 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
  • rf

    #2
    Re: Does this existing anywhere in the world? (javascript download progress meter)

    <DHTML crosspost snipped>

    "Julia Briggs" <julia4_me@yaho o.com> wrote in message
    news:c48f65ef.0 306261838.22a35 8af@posting.goo gle.com...[color=blue]
    > 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.[/color]

    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.


    Comment

    • rf

      #3
      Re: Does this existing anywhere in the world? (javascript download progress meter)


      "Julia Briggs" <julia4_me@yaho o.com> wrote in message
      news:c48f65ef.0 306262134.61405 c16@posting.goo gle.com...[color=blue]
      > "rf" <making.it.up@t he.time> wrote in message[/color]
      news:<_bOKa.247 $eR2.3311@news-server.bigpond. net.au>...
      [color=blue]
      > I want to have users who download large PDF documents that are
      > normally automatically loaded into the browser presented with a
      > download progress bar.[/color]

      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.


      Comment

      Working...