If the Windows Web browser (IE 5 or 6) opens an XLS file
(spreadsheet), how it handles it depends on a file association setting
within Windows. There is a setting called "confirm open after
download" in Windows Explorer under Tools, Folder Options, File Types,
XLS (in list), Advanced (button). This setting will determine if a
"Save File" dialog box pops up or not when user clicks on a
spreadsheet link. If this option is switched off, then a spreadsheet
will directly open in the browser window. We don't want this to
happen. We want the options dialog box to appear for users.
The options dialog box has "Open", "Save", and "Cancel" options, but
also allows the user to switch off this dialog in future downloads
(links to spreadsheets); but since it never appears again once off,
there is no easy way for users to set it back on.
The problem is that this option is not controllable on the server side
that we know of. It is not realistic to expect the user to go into
the Folders Options described above. We tried changing the MIME
headers to indicate binary (octet) in ColdFusion, but it did not work.
Apparently the file extension ("XLS") overrides any MIME headers.
Does anybody know of a fix or workaround that is convenient for the
users?
Thanks, -T- 6 6292
Topmind wrote: If the Windows Web browser (IE 5 or 6) opens an XLS file (spreadsheet), how it handles it depends on a file association setting within Windows. There is a setting called "confirm open after download" in Windows Explorer under Tools, Folder Options, File Types, XLS (in list), Advanced (button). This setting will determine if a "Save File" dialog box pops up or not when user clicks on a spreadsheet link. If this option is switched off, then a spreadsheet will directly open in the browser window. We don't want this to happen. We want the options dialog box to appear for users.
[snip]
This is covered in the FAQ:
<URL:http://www.htmlhelp.com/faq/html/media.html#force-download>
When thinking of posting a question to a new newsgroup, you'll often find
that your question has already been answered many times over, so try
reading the FAQ and some of the recent threads before posting. You can
usually find the FAQ by putting the newsgroup name followed by "FAQ" into
Google.
Apparently the file extension ("XLS") overrides any MIME headers.
[snip]
Sounds like typical Internet Explorer broken behaviour. Consider switching
to a browser that doesn't violate RFC 2616 (HTTP). In other words consider
switching to _any_ other browser.
--
Jim Dabell
> > If the Windows Web browser (IE 5 or 6) opens an XLS file (spreadsheet), how it handles it depends on a file association setting within Windows. There is a setting called "confirm open after download" in Windows Explorer under Tools, Folder Options, File Types, XLS (in list), Advanced (button). This setting will determine if a "Save File" dialog box pops up or not when user clicks on a spreadsheet link. If this option is switched off, then a spreadsheet will directly open in the browser window. We don't want this to happen. We want the options dialog box to appear for users. [snip]
This is covered in the FAQ:
<URL:http://www.htmlhelp.com/faq/html/media.html#force-download>
When thinking of posting a question to a new newsgroup, you'll often find that your question has already been answered many times over, so try reading the FAQ and some of the recent threads before posting.
I searched for more than an hour. How long do you recommend searching
before asking?
You can usually find the FAQ by putting the newsgroup name followed by "FAQ" into Google.
I will try to remember that. Usually sombody posts the related
FAQ to the newgroup itself, so that it's content should turn up in searches
also.
BTW, somebody recommended trying:
Content-Type: application/download.
or
Content-Type: application/x-msdownload
I have yet to try them.
Apparently the file extension ("XLS") overrides any MIME headers. [snip]
Sounds like typical Internet Explorer broken behaviour. Consider switching to a browser that doesn't violate RFC 2616 (HTTP). In other words consider switching to _any_ other browser.
I don't make those decisions in the given large organization. Besides,
the content was already MS-specific before I came. Thus, any change
will impose a conversion cost.
-T-
> BTW, somebody recommended trying:
Content-Type: application/download.
or
Content-Type: application/x-msdownload
I have yet to try them.
Why would you "try" them? That would just tell you how the specific browser(s) tested react to - an undefined and hence incorrect media type, and - a media type that is explicitly labeled as being nonstandard, i.e. to be used only by specific agreement between interested parties.
Moreover, if you _know_ what the registered media type of the data is, you would give disinformation if you specify an incorrect media type or a proprietary media type. Almost the same applies to the more common advice of using application/octet-stream, which is a standard media type but basically mean 'some lump of binary data, I don't know what, or cannot describe it any better'.
Are you suggesting that those settings are no different than something
random like:
application/gdfjsdfasfoobar
?
I was under the impression that those settings were something
recognized by MS browsers, even if they are not a "formal" web
standard. Hacky? Perhaps, but a guaranteed download dialog box is what
the customer wants. They don't want lectures about standards purity.
-T- to*****@technologist.com (Topmind) wrote: I was under the impression that those settings were something recognized by MS browsers, even if they are not a "formal" web standard.
That is, they are recognized by some browsers that are known to violate
the fundamental protocols of the Web in this respect.
Hacky?
Try "worse than useless trickery". It only hurts when it "works".
Perhaps, but a guaranteed download dialog box is what the customer wants.
Which is not what the user needs, and is surely not possible in HTML
authoring for the World Wide Web, which is, if you allow me, what we
are trying to discuss here.
They don't want lectures about standards purity.
Neither do we want pointless "advice" from anonymous sources.
But we cannot prevent you from giving it, we can just ignore it.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html to*****@technologist.com (Topmind) wrote: For intranets, what many companies really want is is a "remote GUI" protocol.
Whatever they might want, we still try to discuss HTML authoring for the
World Wide Web here. It seems that you have missed this, among other
things. Thank you for keeping your From field as a cluelessness
indicator; please do not change it unless you have something to
contribute to the topic of this group. Thank you in advance.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
> For intranets, what many companies really want is is a "remote GUI" protocol. Whatever they might want, we still try to discuss HTML authoring for the World Wide Web here.
Is there a comp.infosystems.intranets.authoring.html ?
It seems that you have missed this, among other things. Thank you for keeping your From field as a cluelessness indicator; please do not change it unless you have something to contribute to the topic of this group. Thank you in advance.
You really seemed bothered by pseudonames. This is the 3rd time
you mentioned it. The first was enough to indicate your displeasure
with it. But, I disagree. Live with it.
-T- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: peetm |
last post by:
I'd like to write to a log whenever a visitor to my site downloads a
file. So, I'd like the link they click to be to a php 'page' that
returns the file. Don't know how to do that!
Side...
|
by: Pedro Fonseca |
last post by:
Greetings!
In my PHP website I'm trying to raise a File Download dialog directly
in a WindowsCE IE client with the following code:
header( "Content-Type: application/octet-stream\n" );...
|
by: Navin |
last post by:
hi,
guys i am using the following code to force a file download dialog in
asp
Response.ContentType = "application/vnd.ms-excel"
response.AddHeader "content-disposition","attachment; filename="...
|
by: chon |
last post by:
I have an ASP page that is sent a file location as a parameter. It opens
this file, loads the ADODB.Stream object and does a binary write to the page
forcing the download dialog to appear. This...
|
by: Kevin Muenzler, WB5RUE |
last post by:
How do I force a browser to download a file instead of displaying it? In
other words I have a page with MP3 and WMA files on it and I would like for
the visitor to download the file instead of...
|
by: Brian Paul |
last post by:
When a user clicks on a linkbutton on a page, i would like to render a printer-friendly version of the asp.net page and download it as an html attachment to the browser. The code below works great,...
|
by: KeithRaginF |
last post by:
Hello
I am trying to return the contents of an Excel file. However, I don't want to just redirect the request to the Excel file since it does not reside in a location where that is appropriate. ...
|
by: Ken Varn |
last post by:
I have an ASP.NET page that incorporates the following code on a button
press.
private void DownloadTag_Command(object sender, CommandEventArgs e)
{
FileStream fs;
String Filename;
Filename...
|
by: RN1 |
last post by:
In an ASP.NET app, users can upload their files to a remote server as
back-up. I want to give users the provision to download files that
they have uploaded to the remote server to their local...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |