Right I understand that. But if it is a pdf, it depends on if they have a
program that reads PDFs. If they don't, it will download otherwise it will
open it. As the case for all file types. I want to force the dialog box
regardless of the file type and regardless of the application they have
installed. The example I showed (link) is downloading a document. I have
"Word" installed, yet the dialog forces me to only download the file.
Other options is have the files zipped.. then they will all download.
Disadvantage is that I have some customers that don't know a thing about
zipping. And I don't want them to download and .exe (extractable) file.
I also want to learn how to do the dialog box for the sake of learning the
JavaScript anyway.
Thanks for your input.
"Randy Webb" <> wrote in message
news:rvWdnXHid5lN083eRVn-...
> JCO said the following on 10/14/2005 7:31 PM:
> > Does anybody have a Download Dialog written in JavaScripts? This is for
a
> > website. I've seen it done before.... where you click on what you want
and
> > the dialog comes up asking you if you want to save it. From what I can
> > tell, the name of the file is passed as a parameter of the JavaScript.
> >
> > Below is an example of what somebody (who I don't know) has done:
> > http://eteamz.active.com/tejanoswhite90girls/handouts/
>
> It has nothing to do with Javascript. It has to do with file types,
> browser settings, and server-settings. The only thing that *may* be
> passed as a "parameter of the Javascript" is the URL to the file but the
> download dialog is user-dependent more than anything else and you can
> not "force" it.
>
> If the user wants to download it, they can right click>Save target As
> (or other wordings).
>
> If the user wants to display it in the browser (and has it set up that
> way) then allow them.
>
> --
> Randy
> comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly