English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know how to create a link using HTML that would enable me to open a word or text document that resides on my hard drive. (using the target as _blank). However when I click the link to open the doc, I get a dialogue box asking me if I want to "open"/"save"/"cancel". When I click "open", it will successfully open the doc in a IE window, and thats the problem. I need some experts here to tell me how I can use HTML or javascript so the word doc DOES NOT open in a IE window, and also if there is a way to avoid the dialogue box asking me if I want to open, save or cancel.

2006-06-17 15:16:18 · 5 answers · asked by synapse 4 in Computers & Internet Programming & Design

5 answers

When your server sends out the requested MS-Word doc, it sends a header along with it to indicate the type of file that the web server believes it to be.

Most web servers are configured to send a .doc with the header:

Content-type: application/msword

If you end up seeing the MS-Word document inside of IE, the problem is not with your webserver but with your *client* (in this case, IE itself). IE has been configured to accept the above content-type and has been told (by you or MS or your IT peoples) that IE can render the document itself.

See the URL below as an attempt to describe what is going on. But the answer is simply to modify IE's setting. I'm not an IE guru, but I believe the setting you want to change or disable is in:

Tools -> Internet Options -> Programs -> Manage Add-ons...

Hopefully, if this is the wrong place, someone will correct me.

2006-06-17 16:14:47 · answer #1 · answered by RGB_Mars 3 · 0 0

You can link to a text file the same way you link to html files, you must be sharing files with the internet in order for the link to work. Internet Explorer won't open word files, they have to be saved as .txt or .html

2006-06-17 15:25:02 · answer #2 · answered by John Luke 5 · 0 0

There is no way to prevent this behavior with HTML. The web client (Internet Explorer in this case) is programmed to do what you see: give you an option and carry it out.

2006-06-17 16:24:19 · answer #3 · answered by rvera99 3 · 0 0

bypass to report->Open in IE 7. you need to have the menu bar open, you try this through precise click in a sparkling component of the device bar and checking Menu Bar. or in simple terms variety contained in the direction contained in the handle bar. i'd propose utilising a viewer, both the default one which includes homestead windows, or Paint. you may do alot with both.

2016-11-14 22:12:12 · answer #4 · answered by ? 4 · 0 0

jsut change the format of the doc to html

2006-06-17 15:22:35 · answer #5 · answered by Yahoo! Answerer 6 · 0 0

fedest.com, questions and answers