Just a regulat link is all that is required. The user would click on the link and it would start downloading to them. Depending on how they have their browser configured, it may open up in the browser window using the Acrobat plugin (in which case they can manually save the file).
You can detect their internet connection by timing how long it takes for them to recieve a known amount of data. If you have a 200K image, you can tell when it has finished loading (the onload event is triggered on the image). If you use getTime() before you set the src of the image, and then use it again once the onload event has triggered... you can calculate the number of milliseconds that it took to download the 200K image. From there it's a sinple matter to figure out the speed in Mb/sec etc.
Calculating their internet connection speed is not really that reliable... but for the purposes of figuring out an approximate download time for the PDF... it'll do the trick.
i have the link already set up, but the company wants a "Download" link, i have a frame page, and the lower frame shows the PDF if they have the plug-in, and the top has a go back button, and they want a "Download" link here. i told them people could just save from the PDF and if they do not have PDF, it asks where to save the file. is there any way to call the "Save Target As.." from js?
thanks for your reply about the download time, i didn't think about that.
Their server is really low class and dose not do anything. i doubt they will do that, if i can't do it through their web page control panel, they will not do it.
Thanks for the idea, I'm sure I'll use that if the problem comes up with another web site.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.