TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Linking online doc to an intranet From:"Wing, Michael J" <mjwing -at- INGR -dot- COM> Date:Wed, 16 Sep 1998 16:31:10 -0500
Jim:
If I'm following your question correctly, you can create an instance of an
application on the client side through VBscript (seeming you stipulated
IE4.0). This is done through the CreateObject method. I don't believe
JavaScript has a CreateObject (or equivalent) method. If this is true, you
must use VBScript.
The following code creates an instance of Excel and opens a new workbook.
You can comment the App.Workbooks.Add line, uncomment the App.WorkBooks.Open
line, and change the filepath to your file.
================================================
<html>
<head>
<script language="VBS">
Dim App
Set App = CreateObject("Excel.Application")
app.visible = true
'app.Workbooks.Open "\\ComputerName\Directory\FileName.xls"
app.Workbooks.Add
</script>
</head>
The question: How do you make a web page running in IE4 start an
application on a user's hard drive or network drive and cause that
application to open a particular file?
The background: For several years now, we've been developing our online
documentation in Infoaccess's Guide Passport suite. Now, the company I work
for is just getting around to erecting a corporate intranet, and I've been
asked whether we can link from an intranet page to a particular document in
our existing, non-HTML library. IOW, I want to know what HTML, or perhaps
Javascript, command will tell Internet Explorer to launch a separate
application and have that application open a file.
Any thoughts?
I'm afraid, if we cannot integrate our existing online documents with the
new intranet, we'll be asked to begin developing our online docs in HTML.
We're not ready to throw away the work we've already done. InfoAccess's
programs allow us to more easily create useful online documentation and
deliver it in a more powerful, fully featured browser.