Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help file

Status
Not open for further replies.

ShortyA

MIS
Feb 20, 2002
363
CH
Hi there,
I have written a custom help file but am experiencing problems with displaying it.

It has the extension of .CHM but the File Download dialog box always appears asking whether I want to Open It or Save It.


I am using the standard HELP.CSP file with an amendment to point the location variable to my file.

Does anyone know the best way to open a custom help file without the dialog box ?
Many thanks - Alec
 
If you are being prompted to download the file, this indicates that the web server does not understand the request (i.e. the extension.)

There is a funky syntax and protocol considerations for you since .chm is a MS technologu and only supported in IE 4+ (v3 needs a different protocol)

You may find the following useful



Hope this helps

Cheers,

SurfingGecko
Home of Crystal Ease
 
Hi,
so as I am using a variable to hold the path/file location, should I just change it at that point ?
For info the code I am using is:

var location = path_info + "help/en/eportfolio/fp%20help/Win95/AWDMI.CHM";

with it being written as:
Response.Write(&quot;<script language=Javascript>&quot; + vbCRLF);
Response.Write(&quot;document.location = '&quot; + location + &quot;';&quot; + vbCRLF);
Response.Write(&quot;</script>&quot; + vbCRLF);

Thanks - Alec
 
Did have a look at the KBases I referenced? There are a couple syntax samples for you

It will need to be similar to this --

ms-its: name.chm::/topic.htm

Note the MS-ITS: that preceds the http. This is a protocol identifier to enable the web link to be able to process the chm file.

Your variable declare might be

var location = &quot;ms-its:&quot; + path_info + &quot;help/en/eportfolio/fp%20help/Win95/AWDMI.CHM&quot;;

Not at an available machine to test this, but you should be able to get it.

Cheers,

SurfingGecko
Home of Crystal Ease
 
In the end I compiled it as HTML and amended the help.csp file to use this one instead.

Thanks for the kbases though - informative.
Alec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top