Posted by Christopher Vogt on 11/15/48 11:48
> Good point. I guess it's a matter of personal preference. IMHO I don't think
> that looks very professional on a company site. Sure OK for a personal site to
> download music etc etc but I don't see many company sites doing that. They
> mostly have a "Download here" type of button.
I would say IT IS more professional to give a "right click to
download"-hint as it it showing the user how to do it right. However a
simple link is more convenient and supports unexperienced users. I
implemented that once with fpdf (fpdf.org). Its method Output() has a
parameter that exactly covers the task (more on
http://www.fpdf.org/en/doc/output.htm). I also remember that I read the
implementation and believe to remember that they worked with some dummy
Content-Disposition. You can either do that as well or create a simple
instance of fpdf and look for the header it sends with with one or the
other option. Try telnet or HTTP Live Headers (Firefox Extension) to see
the headers the server sends.
Navigation:
[Reply to this message]
|