From: Rafal Konopka on
I've read MS documentation, I've searched the discussion threads, I cannot
invoke the SaveAs command from a web page.

I tried
<a href="javascript:window.execCommand(\"SaveAs\");"><click here</a>
<a href="javascript:document.execCommand(\"SaveAs\");"><click here</a>

I tried passing arguments (\"SaveAs\",1,\"myfile.htm\");

I cannot get it to work.

Rafal


From: Zifud on
Rafal Konopka wrote:
> I've read MS documentation, I've searched the discussion threads, I cannot
> invoke the SaveAs command from a web page.
>
> I tried
> <a href="javascript:window.execCommand(\"SaveAs\");"><click here</a>
> <a href="javascript:document.execCommand(\"SaveAs\");"><click here</a>
>
> I tried passing arguments (\"SaveAs\",1,\"myfile.htm\");

Perhaps try Microsoft?

<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbafpd11/html/fpmthexecCommand_HV03085060.asp>

You must visit these pages with IE or you will not see the extra
content MS provides using their own proprietary stuff (such as
the list of commands that can be invoked with the execCommand
method).

>
> I cannot get it to work.
>

You are attempting VBA commands, not JavaScript. There is no
"SaveAs" command or anything similar that can be invoked with
execCommand, so you will not 'get it to work' until the
functionality exists in whatever browser you use.

--
Zif
From: Arik Segal on
This should work:
<a
href="javascript:void(document.execCommand('SaveAs',true))">save</a>



On Wed, 16 Mar 2005 19:31:01 -0500, "Rafal Konopka"
<rafalk(a)comcast.net> wrote:

>I've read MS documentation, I've searched the discussion threads, I cannot
>invoke the SaveAs command from a web page.
>
>I tried
> <a href="javascript:window.execCommand(\"SaveAs\");"><click here</a>
> <a href="javascript:document.execCommand(\"SaveAs\");"><click here</a>
>
>I tried passing arguments (\"SaveAs\",1,\"myfile.htm\");
>
>I cannot get it to work.
>
>Rafal
>

 | 
Pages: 1
Prev: How to force a download dialog box
Next: isNum