Re: [Boston.pm] allow user to download a file from web server

2008-01-04 Thread Xiong, Bob
Salzberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 4:10 PM To: Xiong, Bob Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] allow user to download a file from web server On Jan 2, 2008, at 12:00 PM, Xiong, Bob wrote: I'm struggling with CGI::Pretty to implement a button to let

Re: [Boston.pm] allow user to download a file from web server

2008-01-03 Thread Xiong, Bob
] Sent: Wednesday, January 02, 2008 4:10 PM To: Xiong, Bob Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] allow user to download a file from web server On Jan 2, 2008, at 12:00 PM, Xiong, Bob wrote: I'm struggling with CGI::Pretty to implement a button to let users download files from a web

[Boston.pm] allow user to download a file from web server

2008-01-02 Thread Xiong, Bob
Happy New Year to everyone! I'm struggling with CGI::Pretty to implement a button to let users download files from a web server. I've wasted hours searching the internet to no avail. Could one of the experts here give me a pointer so I could start my new year on the right foot? Thanks a

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread john saylor
hey On 1/2/08, Xiong, Bob [EMAIL PROTECTED] wrote: I'm struggling with CGI::Pretty to implement a button to let users download files from a web server. um, javascript on click handler? -- \js [ http://or8.net/~johns/ ] ___ Boston-pm mailing list

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread Xiong, Bob
: Wednesday, January 02, 2008 12:09 PM To: Xiong, Bob Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] allow user to download a file from web server hey On 1/2/08, Xiong, Bob [EMAIL PROTECTED] wrote: I'm struggling with CGI::Pretty to implement a button to let users download files from a web server

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread Kenneth A Graves
On Wed, 2008-01-02 at 12:38 -0500, Xiong, Bob wrote: Thanks, John. But I was looking for the Perl code. I also intended to allow a user to download the file and save it to his/her own computer (without opening it up). Sorry about not making myself clear. - Bob Xiong The trick is to lie to the

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread Christopher Schmidt
On Wed, Jan 02, 2008 at 11:45:33AM -0600, Kenneth A Graves wrote: On Wed, 2008-01-02 at 12:38 -0500, Xiong, Bob wrote: Thanks, John. But I was looking for the Perl code. I also intended to allow a user to download the file and save it to his/her own computer (without opening it up).

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread Kenneth A Graves
On Wed, 2008-01-02 at 12:57 -0500, Christopher Schmidt wrote: I don't think this is the best solution. Instead, one should probably set the Content-Disposition: attachment; filename=preferred_filename.pdf . This will tell the browser Download ths file to the filename specified -- which the

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread Xiong, Bob
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth A Graves Sent: Wednesday, January 02, 2008 1:03 PM To: Christopher Schmidt Cc: boston-pm@mail.pm.org Subject: Re: [Boston.pm] allow user to download a file from web server On Wed, 2008-01-02 at 12:57 -0500, Christopher Schmidt wrote: I

Re: [Boston.pm] allow user to download a file from web server

2008-01-02 Thread Bogart Salzberg
On Jan 2, 2008, at 12:00 PM, Xiong, Bob wrote: I'm struggling with CGI::Pretty to implement a button to let users download files from a web server. Like John said, a button can be scripted to request a URL when clicked. input type=button value=Click Me onclick=location.href =