473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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:

er**@ronne.se
Jul 20 '05 #1
2 2113
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.
Jul 20 '05 #2
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:

er**@ronne.se


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 <gw*****@agricoreunited.com>

* 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
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Catherine Lynn Smith | last post by:
I am creating a webpage with dhtml <DIV> layers and I want a link on one layer to modify the content on another but I seem to keep running into errors. Basically I create a layer in the middle...
2
by: Heiko Pliefke | last post by:
Hi NG! I have to change dynamically all hyperlinks, when the html-page is loaded at the client. This works fine, except in the following scenario: When the innerText of an anchor contains an...
1
by: Julius Mong | last post by:
Dear all, according to the ASV3 manual known problem section, to make an <a> execute some Javascript onclick: ...
5
by: D E | last post by:
Here is the problem. The following script/html code works in IE, not Netscape. The javascript portion produces the text to be dynamically written in the <A HREF="">HEREHEREHERE</A> portion... The...
1
by: Rafaela K. Azinhal | last post by:
Hi, I'm a newbie and have a question: I have following PivotTable object in a HTML page <html> <body> <object class='ptdrillthrough' classid="clsid:0002E552-0000-0000-C000-000000000046"...
3
by: Torrent | last post by:
When Trying to Load an XSLT File with the XslTransform i got a rather annoying Exception being thrown "System.Xml.XPath.XPathException: XsltContext is needed for this query because of an unknown...
3
by: Miquel Labňria | last post by:
When I load a document, it have text "&ntilde;" I recibe an error: Reference to undeclared entity, 'Ntilde' "Ntilde" is an entity of iso-8859-1, why load method can't load it. How can I refer...
8
by: Fabio Cavassini | last post by:
I want to clean my html from JavaScript and attach all EventHanding code as: document.getElementById('to').addEventListener('onMouseout',delayhidemenu,false);...
3
by: etabetapi | last post by:
I'm trying to build a simple gallery using some thumbnail images to load larger images and SWF files by swapping out the source hrefs. It works okay with images, but I'm having trouble doing the same...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.