By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,880 Members | 1,817 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,880 IT Pros & Developers. It's quick & easy.

invoking ie/windows file save dialog

P: n/a
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?
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/
Jul 20 '05 #2

P: n/a
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.

"Brian" <us*****@julietremblay.com.invalid> wrote in message
news:10*************@corp.supernews.com...
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/

Jul 20 '05 #3

P: n/a
"bbxrider" <bx******@comcast.net> a écrit dans le message de
news:gGxJc.80492$JR4.72283@attbi_s54
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...

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.