Forum Moderators: open

Message Too Old, No Replies

Trouble with HREF to a word document

Browser opens word document in itself displaying all the special characters

         

WhiteShadow

12:34 am on Nov 19, 2003 (gmt 0)



Should be a silly one (not for me though!).

Have a simple home.html page that contains links to word documents. Browser is able to locate the doc but does not open it in MS Word - it displays it in the browser itself with all its special characters! :-(

Not a browser configuration problem because if I go to other sites I'm able to open Word Doc links properly (like google for example).

What I have in home.html is a simple <a href="/path/name.doc"> line. Whats wrong? Appreciate your help.

shady

1:06 am on Nov 19, 2003 (gmt 0)

10+ Year Member



I have tested the scenario and it displays fine on my browser. It DOES display in IE though. In order to display in MS Word I would guess the user would need to download first.

Regards

jdMorgan

1:15 am on Nov 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



WhiteShadow,

Welcome to WebmasterWorld [webmasterworld.com]!

Use the server headers checker [webmasterworld.com] to check what MIME-type your server is returning with the DOC files.

It needs to be something like "Content-Type: application/msword" or "Content-Type: application/vnd.ms-word".

How you fix this depends on your server type, i.e. IIS or Apache.

Jim