View Full Version : a "download linked file" option
theUmGuy
03-08-2008, 10:11 PM
I would like to create an option for the user to click a button and it will download a linked word file. Any idea how to go about that?
Thank You.
atomic
03-08-2008, 10:19 PM
on(release){
getURL("http://www.yourDomain.com/your.doc");
}
Of course replace yourDomain with your server's name and your.doc, with the actual .doc's name.
CyanBlue
03-09-2008, 01:30 AM
Howdy and Welcome... :)
That will initiate the download process, but it's the web browser that will choose what to do with the give file type... Most of the times, the web browser will try to open up the file with the associated applications... So, there is a good chance to invoke a program to open up the file rather than the downloading... The easiest way to make the file download is to ZIP up the file and use the getURL() function with it...
atomic
03-09-2008, 04:50 AM
Howdy and Welcome... :)
That will initiate the download process, but it's the web browser that will choose what to do with the give file type... Most of the times, the web browser will try to open up the file with the associated applications... So, there is a good chance to invoke a program to open up the file rather than the downloading... The easiest way to make the file download is to ZIP up the file and use the getURL() function with it...
That said, if the document does open up with an associated application, it would be easier to just save it as, from within that opened document, than use a getURL to a zip package, which will be downloaded, but will also need to be de-compressed, so that it can be opened in the same application as above, and then re-saved appropriately somewhere outside of the zip package...
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.