View Full Version : left click on link to "save target as"
11-29-2004, 12:14 PM
I want to be able to left click on a link and as a result, the save target as dialog box appears automatically. (So therefore left click = right click & save target as). I hope this makes sense!
11-29-2004, 02:14 PM
Naughty double poster. No cake for you.
You could put the file in a .zip, that'd do it. Then link to the zip file.
11-30-2004, 02:05 PM
the purpose of this is that i want to be able to list a number of (e.g.) word documents, giving the option to only save by clicking. its for a members web site so has to contain the word documents and not zip files.
12-01-2004, 03:45 AM
Firstly I would not necessarily place word documents on the web as these could be easily modified by people (depends if the info is propriety etc), but rather place PDF's as they are smaller and hence save download times etc. Then I would open the PDF in a separate window (so it does not detract from your page) and provide the option that allow then to save/print etc.
Best rgds, Simonf :cool:
12-01-2004, 10:28 AM
Thanks for that post Simon.
The site is a password protected member site. Documents have to be a combination of word/pdf files (even excel sheets at times), I can not dictate the file type unfortunately.
The way I wanted to setup a page was so that you would have the name of this file to download, followed by an open button (which would open the file in a new window), and then a save button, so that one click gives you the save option. I want/have to do it this way as I am dealing with computer iliterate people who can just about grasp browsing the web, so everything has to be as simple as possible.
Many thanks if you or anyone can help me further.
04-18-2005, 11:55 PM
I have the same problem with a page I'm working with.
pdf files and word doc, are the files that are going to be up loaded, and unless I can find a way to place a copy of the file in a zip file though the cgi script, I'll need the link to open a Save As... window.
thanks so much for your time,
i was going to start a new thread, but seeing as this is the exact same prob, idk.
04-19-2005, 05:20 PM
The correct way to approach this is through the Content-Type header, sent by the server in response to a request. If it is set to a value that is not associated with a particular application, plug-in, or behaviour, a user agent will typically prompt the user and allow them to choose what to do. The usual content type used for this is application/octet-stream, which means nothing more than arbitrary binary data.
How you go about implementing this depends on your server software. With Apache, or software that supports the same directives, you could force all files that end in .doc to have a particular content type with:
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.