Link to local CHM file (IE6)

G

Guest

Hi everybody!

This is what I'm trying to achieve: I want to create a HTML or ASPX page
with a HTML hyperlink that will open a CHM file stored locally in C:\Help. I
tried to use onclick with window.showHelp(), but it doesn't seem to work. The
test machine runs WIN2K Professional.

My code:
<a href="#" onclick="window.showHelp('C:\Help\Help.chm')">Open CHM</a>
<a href="#"
onclick="window.showHelp('mk:mad:MSITStore:C:\Help\Help.chm::/topic2b.htm')">Open Topic 2b from CHM</a>

Is showHelp not supported anymore in IE6? Or the only thing I can do is to
get the user to download the file locally, and then run it manually from the
C drive?
Can anybody fix my lines of code please?

Your help is appreaciated.
Bye!
 
G

Guest

Just discovered that the following works:
<a href="#" onclick="window.showHelp('C:\\Help\\Help.chm')">Open CHM</a>
<a href="#"
onclick="window.showHelp('mk:mad:MSITStore:C:\\Help\\Help.chm::/topic2b.htm')">Open Topic 2b from CHM</a>
Difference to my first lines code: \\ instead of \

There's only one problem though:
The hyperlinks work IF and ONLY IF the HTML page runs locally, i.e.
C:\Inetpub\...htm
If I access the HTML page over the Internet as part of a ASP.NET web app,
i.e. http://...htm, the hyperlinks give an access denied error message.

Please confirm that access to CHM via the hyperlink is not possible over the
Internet, even if the HTML uploaded at a URL checks for and opens a local CHM
file.
Thanks.
 
R

Rob Parsons

Hi Ovidiu,

Here is the link to the Knowledge Base article covering this behavior

http://support.microsoft.com/default.aspx?scid=kb;en-us;811630




Ovidiu said:
Just discovered that the following works:
<a href="#" onclick="window.showHelp('C:\\Help\\Help.chm')">Open CHM</a>
<a href="#"
onclick="window.showHelp('mk:mad:MSITStore:C:\\Help\\Help.chm::/topic2b.htm')">
Open Topic 2b from CHM said:
Difference to my first lines code: \\ instead of \

There's only one problem though:
The hyperlinks work IF and ONLY IF the HTML page runs locally, i.e.
C:\Inetpub\...htm
If I access the HTML page over the Internet as part of a ASP.NET web app,
i.e. http://...htm, the hyperlinks give an access denied error message.

Please confirm that access to CHM via the hyperlink is not possible over the
Internet, even if the HTML uploaded at a URL checks for and opens a local CHM
file.
Thanks.
onclick="window.showHelp('mk:mad:MSITStore:C:\Help\Help.chm::/topic2b.htm')">Op
 
G

Guest

Thanks for the reply Rob.
Unfortunately it hasn’t solved my problem. Installing 811630 doesn’t apply
to me; I am already running WIN2K Pro SP4, forgot to mention this, which
includes the 811630 fix.
Have you any other ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top