Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 08:20 PM
bbxrider
Guest
 
Posts: n/a
Default invoking ie/windows file save dialog

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?


  #2  
Old July 20th, 2005, 08:20 PM
Brian
Guest
 
Posts: n/a
Default Re: invoking ie/windows file save dialog

bbxrider wrote:
[color=blue]
> 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[/color]

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.
[color=blue]
> 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[/color]

MSIE is a strange beast. Other browsers will not open Excel inside the
browser like that.
[color=blue]
> does it have anything to do with the permissions on the file and
> its directory??[/color]

No.
[color=blue]
> and while on that subj, any ideas on what the dir and file
> permissions should be?[/color]

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/
  #3  
Old July 20th, 2005, 08:20 PM
bbxrider
Guest
 
Posts: n/a
Default Re: invoking ie/windows file save dialog

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" <usenet3@julietremblay.com.invalid> wrote in message
news:10fdalkg728ued2@corp.supernews.com...[color=blue]
> bbxrider wrote:
>[color=green]
> > 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[/color]
>
> 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.
>[color=green]
> > 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[/color]
>
> MSIE is a strange beast. Other browsers will not open Excel inside the
> browser like that.
>[color=green]
> > does it have anything to do with the permissions on the file and
> > its directory??[/color]
>
> No.
>[color=green]
> > and while on that subj, any ideas on what the dir and file
> > permissions should be?[/color]
>
> 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/[/color]


  #4  
Old July 20th, 2005, 08:21 PM
Pierre Goiffon
Guest
 
Posts: n/a
Default Re: invoking ie/windows file save dialog

"bbxrider" <bxtrap01@comcast.net> a écrit dans le message de
news:gGxJc.80492$JR4.72283@attbi_s54[color=blue]
> 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>[/color]

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...

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles