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 ha

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 ad

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 Sara
IL PROTECTED]> Cc: Sent: Tuesday, September 20, 2005 5:22 AM Subject: Re: Forcing a "save as' dialogue box to come up on left click 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 head

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 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-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 t

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

2005-09-19 Thread Tony Frasketi
Wiggins d'Anconia wrote: Interesting way to do it, not what I intended. Have you 100% confirmed that the header is being passed back correctly? I am not sure how Apache (or whatever web server you are using) handles setting the type, it might be finding it from somewhere else that is overridin

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: > 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 th

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 t

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

2005-09-18 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 "Anybody remote

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, becaus

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
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) http://www.dtp-aus.com/dwnloads.htm. This did not work as advertised. This web page also suggested using a CGI script

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 c

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

2005-09-18 Thread Tony Frasketi
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 the browser. And also