Thursday, 15 July 2010

javascript - Is it possible to capture the load percentage of content being downloaded in an iFrame? -


I have a site where I upload users. Currently, I do this via IFrame:

  & lt; Iframe src = "path / to / users / file.pdf" width = "500px" height = "500px" />  

Some of these files can be very large, so I want to show a progress bar so that users can keep track of what is going on.

I have got a ton answer so that the contents of Ephraam are 100% loaded (so that the spinner can be deactivated). However, I want to show the actual percentage of what I have downloaded.

Is this possible?

If this can not be done, can I "inject" the raw data on the page? For example, if I call AJAX at `/path/to/filedownload.pdf ', can I pop that response on the page?

I am not sure where to start with this


No comments:

Post a Comment