Click here to get back home

invoking ie/windows file save dialog

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
invoking ie/windows file save dialog bbxrider 07-15-2004
Get Chitika Premium
Posted by bbxrider on July 15, 2004, 4:47 pm
Please log in for more thread options
running win2k adv server/ iis5.0
trying to setup on my web page where browsers can download a file, an .xls
so been trying to figure out with a download 'link' what invokes the
standard ms file save dialog, hopefully without using vbscript
other web pages i have seen have a simple link such as : <a
href="someDir/someFile.xls">Download</a>
when i used that, it just opens the spreadsheet and actually allows me to
use the spreadsheet 'through' the web page, which was a surprise but
my objective is not to run the sheet but to have the link just invoke the
file save dialog so the user/browser can save the .xls where they
want without actually having to open excel,
this should be easy right? does it have anything to do with the permissions
on the file and its directory?? and while on that subj, any ideas on
what the dir and file permissions should be?




Posted by Brian on July 15, 2004, 1:02 pm
Please log in for more thread options
bbxrider wrote:

> trying to setup on my web page where browsers can download a file,
> an .xls so been trying to figure out with a download 'link' what
> invokes the standard ms file save dialog

Read the faq, and save us all some time and trouble. In short, you
cannot control what a browser does from the server end. All you can do
is server the resource with the correct mime type. In this case, I'm
pretty sure it's application/msexcel, but check online and confirm.

> when i used that, it just opens the spreadsheet and actually allows
> me to use the spreadsheet 'through' the web page, which was a
> surprise

MSIE is a strange beast. Other browsers will not open Excel inside the
browser like that.

> does it have anything to do with the permissions on the file and
> its directory??

No.

> and while on that subj, any ideas on what the dir and file
> permissions should be?

File permission needs read access. I don't which directory you mean,
so I cannot guess. Normally, it's read and execute. This is ot for
ciwah, ask about permission in a server group.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/


Posted by bbxrider on July 15, 2004, 5:54 pm
Please log in for more thread options
thanks for the help, all i can say is i spent about an hour researching
google groups, my que html manual and checking source code as best i
can i other web pages that invoke a file save dialog, but never made the
mime connection, for invoking a file save dialog
as opposed to opening the application.

> bbxrider wrote:
>
> > trying to setup on my web page where browsers can download a file,
> > an .xls so been trying to figure out with a download 'link' what
> > invokes the standard ms file save dialog
>
> Read the faq, and save us all some time and trouble. In short, you
> cannot control what a browser does from the server end. All you can do
> is server the resource with the correct mime type. In this case, I'm
> pretty sure it's application/msexcel, but check online and confirm.
>
> > when i used that, it just opens the spreadsheet and actually allows
> > me to use the spreadsheet 'through' the web page, which was a
> > surprise
>
> MSIE is a strange beast. Other browsers will not open Excel inside the
> browser like that.
>
> > does it have anything to do with the permissions on the file and
> > its directory??
>
> No.
>
> > and while on that subj, any ideas on what the dir and file
> > permissions should be?
>
> File permission needs read access. I don't which directory you mean,
> so I cannot guess. Normally, it's read and execute. This is ot for
> ciwah, ask about permission in a server group.
>
> --
> Brian (remove ".invalid" to email me)
> http://www.tsmchughs.com/




Posted by Pierre Goiffon on July 16, 2004, 4:04 pm
Please log in for more thread options
> trying to setup on my web page where browsers can download a file, an
> .xls so been trying to figure out with a download 'link' what invokes
> the standard ms file save dialog, hopefully without using vbscript
> other web pages i have seen have a simple link such as : <a
> href="someDir/someFile.xls">Download</a>

You can try to use the method indicated in KB Q260519
But as said Brian, be really aware that you can't force the behavior of the
browser...



Similar ThreadsPosted
Extra file extension in Save As dialog February 23, 2005, 4:00 am
Mp3 to open save as dialog box December 16, 2005, 10:30 am
Browse for file dialog box - modification needed August 30, 2006, 12:45 pm
OK Button in Dialog box greyed out when linking to Word file January 8, 2008, 3:40 pm
Why can't I save this page as a file and where's the source html? June 22, 2005, 2:08 am
changing file name in "Save as" option for html files October 26, 2005, 3:43 am
Invoking an objects accesskey functionality from javascript code. December 15, 2006, 7:13 pm
Save your world November 25, 2005, 8:20 pm
Is a "ZIP" extension the ONLY way to force a "SAVE AS" for your PDF? August 10, 2004, 1:43 pm
Save me from FrontPage - what do you recommend? June 30, 2005, 12:58 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap