Re: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread David Dorward
On Mon, Sep 19, 2005 at 09:36:16AM -0500, Tony Frasketi wrote: Thanks for the response, David. I scanned thru the document to which you refer and from what I can understand it appears 'to me' that the 'Content-Disposition Header Field being described is in the context of email messages.

RE: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread Bob Showalter
Tony Frasketi wrote: Hello Listers I'm trying to find a way to force a download dialogue box to come up when the user clicks on a link on a web page (the link will primarily be for htm, .txt files on the server). Short answer is that you cannot *force* the client to do anything. The HTTP

Re: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread Sara
Hi all, Did you read it? Content-Disposition - do not enclose filenames in quotes http://support.microsoft.com/kb/q182315/ Thanks, Sara. - Original Message - From: Wiggins d'Anconia [EMAIL PROTECTED] To: Tony Frasketi [EMAIL PROTECTED] Cc: beginners-cgi@perl.org Sent: Tuesday,

Re: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread Sara
Hi all, Did you read it? Content-Disposition - do not enclose filenames in quotes http://support.microsoft.com/kb/q182315/ Thanks, Sara.

Re: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread Tony Frasketi
Sara wrote: Hi all, Did you read it? Content-Disposition - do not enclose filenames in quotes http://support.microsoft.com/kb/q182315/ Thanks, Sara. Thanks very much for the info, Sara ! Will try it without the quotes! Tony Frasketi -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Forcing a save as' dialogue box to come up on left click

2005-09-20 Thread Tony Frasketi
Wiggins d'Anconia wrote: This is the simple part, and probably looks a little like. open file... read in file... print file back to browser... close file There are simpler ways to do this, but what I have come to use looks like: my $READHANDLE; unless (open $READHANDLE, $file) { # error

Re: Forcing a save as' dialogue box to come up on left click

2005-09-19 Thread David Dorward
On Sun, 2005-09-18 at 17:46 -0500, Tony Frasketi wrote: I'm trying to find a way to force a download dialogue box to come up when the user clicks on a link on a web page http://www.faqs.org/rfcs/rfc2183.html -- David Dorward http://dorward.me.uk/ Anybody remotely

Re: Forcing a save as' dialogue box to come up on left click

2005-09-19 Thread Tony Frasketi
Thanks for the response, David. I scanned thru the document to which you refer and from what I can understand it appears 'to me' that the 'Content-Disposition Header Field being described is in the context of email messages. Can you give me some more information as to whether this can apply

Re: Forcing a save as' dialogue box to come up on left click

2005-09-19 Thread Wiggins d'Anconia
Tony Frasketi wrote: Wiggins d'Anconia wrote: Most browsers will provide this functionality if the return header is application/octet-stream rather than text/html or the like. In the case of IE you may have to fool the browser into thinking it is getting something different than it is

Re: Forcing a save as' dialogue box to come up on left click

2005-09-19 Thread Tony Frasketi
What I was intending was to call the cgi script and rather than it printing the normal text/html header it would print the header directly, that way you are guaranteed to be operating the way you intended. Hi Wiggins Thanks for this suggestion... I've tried the following bit of CGI script

Re: Forcing a save as' dialogue box to come up on left click

2005-09-19 Thread Wiggins d'Anconia
Tony Frasketi wrote: What I was intending was to call the cgi script and rather than it printing the normal text/html header it would print the header directly, that way you are guaranteed to be operating the way you intended. Hi Wiggins Thanks for this suggestion... I've tried the

Re: Forcing a save as' dialogue box to come up on left click

2005-09-18 Thread Chris Devers
On Sun, 18 Sep 2005, Tony Frasketi wrote: What I'm looking for is to avoid right clicking and choosing to save the file Is there a way to implement left clicking the link and automatically bringing up a Save As dialogue box? If there's a way, it probably involves Javascript. You could

Re: Forcing a save as' dialogue box to come up on left click

2005-09-18 Thread Tony Frasketi
Chris Devers wrote: What have you tried so far? I've tried two approaches so far. 1) An ftp:// Link but that reqired a user ID and password. Nix to that ! 2) meta http-equiv=refresh content=3; url=.zip in the header section of the web page which I obtained from

Re: Forcing a save as' dialogue box to come up on left click

2005-09-18 Thread Wiggins d'Anconia
Tony Frasketi wrote: Hello Listers I'm trying to find a way to force a download dialogue box to come up when the user clicks on a link on a web page (the link will primarily be for htm, .txt files on the server). Normally when the user left clikcs on the link the .htm or .txt file appears in

Re: Forcing a save as' dialogue box to come up on left click

2005-09-18 Thread Tony Frasketi
Wiggins d'Anconia wrote: Most browsers will provide this functionality if the return header is application/octet-stream rather than text/html or the like. In the case of IE you may have to fool the browser into thinking it is getting something different than it is based on the URL, because