Calling WebHelp from a Web Page
Mar 26th, 2007 by Sandra
There are several good explanations about calling WebHelp from a web page for testing purposes, but I still found myself struggling because I had only bits and pieces to go on, and I found that a variable needed to be set in order for this to work.
Hence these instructions:
- Create an HTML file.
- In the
<head></head>section, place the call to the RoboHelp_CSH.js file as described in the RH online help: - Also in the heading portion, add a scriptlet to define the strPathAndWindow that the RoboHelp_CSH.js expects to see:
- In the body of the HTML, create a link to call your project:
- Save and close the HTML file.
- Copy the HTML file and the RoboHelp_CSH.js file (found in the RoboHelp directories under Program Files) to your desired intranet location.
<script type="text/javascript" language=JavaScript1.2
src="RoboHelp_CSH.js">
</script>
<script type="text/javascript" language="javascript">
var strPathAndWindow="path_to_start_page/index.htm>my_help_window_name";
</script>
<a HREF="javascript:RH_ShowHelp(0, strPathAndWindow,
HH_DISPLAY_TOC, 0)">Launch the help</a>
You may need to tweak the strPathAndWindow setting to get the pathing right, but if you put the launch and RoboHelp_CSH.js files in a directory above your WebHelp files, then you just have to set that path to “./index.htm>my_help_window_name”.