Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Load<A HREF='document.doc'> in Word - not in Explorer????

Reply
Thread Tools

Load<A HREF='document.doc'> in Word - not in Explorer????

 
 
Erik Ronne
Guest
Posts: n/a
 
      02-25-2004
Hello Gurus



I have an intranet web page with links to all kinds of Microsoft Word
document that we use at my work, so my co-works can go to the web page when
they need a special document. However, when they click the links the
documents are of cause loaded in the web browser MS Explorer and not opened
in MS Word, which is annoying.



Are there any tricks - in VBScrip, JavaScript, Java or simply in HTML, that
let me load a Word-link in Word and not in Explorer?



BR

/Erik



Please, mail any answers not only to the newsgroup, but also to me:






 
Reply With Quote
 
 
 
 
Steve R.
Guest
Posts: n/a
 
      02-25-2004
Erik Ronne wrote in message ...
> However, when they click the links the documents are of cause loaded in
> the web browser MS Explorer and not opened in MS Word, which is annoying.


Assuming that all your 'Word' docs are saved with a filename ending .doc
then normally they would automatically be opened in 'Word'.

If the intranet URL path is not to the correct filename but to a long
*friendly* name then maybe that's why it's happening the way it is.

Other than that, the user's preference for opening files on the individual
PCs are not set up correctly.


 
Reply With Quote
 
 
 
 
Grant Wagner
Guest
Posts: n/a
 
      02-27-2004
Erik Ronne wrote:

> Hello Gurus
>
> I have an intranet web page with links to all kinds of Microsoft Word
> document that we use at my work, so my co-works can go to the web page when
> they need a special document. However, when they click the links the
> documents are of cause loaded in the web browser MS Explorer and not opened
> in MS Word, which is annoying.
>
> Are there any tricks - in VBScrip, JavaScript, Java or simply in HTML, that
> let me load a Word-link in Word and not in Explorer?
>
> BR
>
> /Erik
>
> Please, mail any answers not only to the newsgroup, but also to me:
>
>


If you have control over the server, and have some sort of server-side
processing, you could send the following headers:

Content-Disposition: attachment; filename="thefile.doc"
Content-type: application/msword

Then read and send the file to the client.

It is my experience that Internet Explorer will prompt you to save (or open in
Microsoft Word, not an embedded control if you have Word installed) the file.

--
| Grant Wagner <>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html


 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
regex: \<start-of-word, and end-of-word\> not in gsub? Shea Martin Ruby 1 01-15-2007 08:15 PM
Open Word Doc in Word, not in Browser Franck ASP .Net 1 09-09-2005 07:37 AM
Word file not opening from Adm -My recent docs but opening from file menu of Word Thaqalain Computer Support 0 06-30-2005 02:20 AM
How do I identify word<html><html>other word? Laura Perl 1 06-04-2004 11:32 PM
opening a word doc in word not browser Stephen Witter ASP .Net 0 05-18-2004 02:48 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57