Alaska Software Inc. - Open/Save File
Username: Password:
AuthorTopic: Open/Save File
Bruce AndersonOpen/Save File
on Thu, 05 Jan 2006 12:36:23 -0600
In a WAA application, I generate a CSV file and then make it available as a 
href link (http://<IP>/<file.csv>).

When I click on the link, I get a File Download dialog prompting me "...open 
or save this file?".  Normally, we save the file because it is for later use 
in Excel.

My client does not get this prompt to save or open the file.  Instead, the 
file is automatically openned in an IE window, i.e., there is no option to 
save the file.  His IE window does not have a menu choice to save the file. 
If he has the presence of mind to open Excel before he clicks on the link, 
it will open the file in his running instance of Excel and he can save the 
file.

I have looked high and low to find the setup to make his workstation behave 
like mine.  The client says his workstation has the CSV File Type set to 
"Confirm open after download".  Any suggestion what/where is the magic 
setting to give him the Save file choice?

Bruce Anderson
Houston, TX
Martin AltmannRe: Open/Save File
on Thu, 05 Jan 2006 20:54:20 +0100
Bruce,
I would simply tell him to right click the link and select "Save as..."

Regrads,
Martin

________________________________

Deutschsprachiges Xbase++-Forum:
http://www.xbaseforum.de/
________________________________
Vladimir IahnencoRe: Open/Save File
on Thu, 05 Jan 2006 15:42:27 -0500
Hi Bruce,
I didn't test, but try to play with your link in this way:

<a href="#" 
onclick="javascript:document.execCommand('SaveAs','1',null);">Link Here</a>

Regards,
Vladimir

"Bruce Anderson" <banderson@graphical-db.com> wrote in message 
news:ZP1XebiEGHA.2944@S15147418...
> In a WAA application, I generate a CSV file and then make it available as 
> a href link (http://<IP>/<file.csv>).
>
> When I click on the link, I get a File Download dialog prompting me 
> "...open or save this file?".  Normally, we save the file because it is 
> for later use in Excel.
>
> My client does not get this prompt to save or open the file.  Instead, the 
> file is automatically openned in an IE window, i.e., there is no option to 
> save the file.  His IE window does not have a menu choice to save the 
> file. If he has the presence of mind to open Excel before he clicks on the 
> link, it will open the file in his running instance of Excel and he can 
> save the file.
>
> I have looked high and low to find the setup to make his workstation 
> behave like mine.  The client says his workstation has the CSV File Type 
> set to "Confirm open after download".  Any suggestion what/where is the 
> magic setting to give him the Save file choice?
>
> Bruce Anderson
> Houston, TX
>
>
Bruce AndersonRe: Open/Save File
on Fri, 06 Jan 2006 09:54:51 -0600
I think document.execCommand() works on the page that is loaded in IE at the 
moment; hence, saving the file would save the javascript in addition to the 
regular contents of the CSV file.

The dialog box below is what I am trying to force display.  There is 
something about how the client has his IE and workstation configured that is 
keeping this from happening.  I will get into his workstation from long 
distance this weekend, but I do not know all of the places to check for 
settings.








clip_image001.gif
Vladimir IahnencoRe: Open/Save File
on Fri, 06 Jan 2006 11:30:51 -0500
Try Explorer->Tools->Folder-Options->File Types --Find SCV extension -> 
Advanced->Confirm Open After Download

Vladimir

"Bruce Anderson" <banderson@graphical-db.com> wrote in message 
news:MKaaoltEGHA.6152@S15147418...
>I think document.execCommand() works on the page that is loaded in IE at 
>the moment; hence, saving the file would save the javascript in addition to 
>the regular contents of the CSV file.
>
> The dialog box below is what I am trying to force display.  There is 
> something about how the client has his IE and workstation configured that 
> is keeping this from happening.  I will get into his workstation from long 
> distance this weekend, but I do not know all of the places to check for 
> settings.
>
>
>
>
>
>
>
Robert MajorRe: Open/Save File
on Fri, 06 Jan 2006 13:03:06 -0500
Hi Bruce,

You might also see what security level his Internet Explorer
is set at or if any Custom settings are specified.

With IE, see Tools -> Internet Options. Under the Security
tab, click on Internet and check the Security Level for the
zone.  The Medium Level (by default) prompts for
"downloading potentially unsafe content" and displays the
dialog to run or save (or cancel).

Robert
Phil Ide
Re: Open/Save File
on Fri, 06 Jan 2006 16:21:37 +0000
Bruce,

> When I click on the link, I get a File Download dialog prompting me "...open 
> or save this file?".  Normally, we save the file because it is for later use 
> in Excel.
> 
> My client does not get this prompt to save or open the file.  Instead, the 
> file is automatically openned in an IE window, i.e., there is no option to 
> save the file.  His IE window does not have a menu choice to save the file. 
> If he has the presence of mind to open Excel before he clicks on the link, 
> it will open the file in his running instance of Excel and he can save the 
> file.

I suspect that he has a file-association setup for CSV files.

Regards,

Phil Ide

*******************************************
*   Xbase++ FAQ, Libraries and Sources:   *
*   goto: http://www.idep.org.uk/xbase    *
* --------------------------------------- *
* www.xodc.org.uk - openSource Dev-Center *
*******************************************

I will build machines which simply fail when overloaded, rather than wipe
out all nearby henchmen in an explosion or worse yet set off a chain
reaction. I will do this by using devices known as "surge protectors".
          [Things I'd do as an Evil Overlord]