Skip to main content
Participant
April 9, 2008
Question

Using bookmarks for CSH

  • April 9, 2008
  • 1 reply
  • 767 views
Here's the situation: I'm using RoboHelp7 to create a FlashHelp Pro project. I'm then calling the help from a webpage using the RH_ShowHelp() JavaScript function in RoboHelp_CSH.js. Everything works fine EXCEPT when using an ID linked to a bookmark in a topic. Basically it only pulls up the topic, but doesn't go down to the bookmark within the topic.

This is a complete guess, but I suspect it may have something to do with the URL being passed to the browser window, as it ends up being something like this: http://server/project.htm#topic.htm#bookmark. If I manually edit the URL to be http://server/topic.htm#bookmark the page displays the way I want it to..... so how do I get it to work with CSH?

Any help is much appreciated... thanks!
This topic has been closed for replies.

1 reply

Participant
April 14, 2008
bump
Inspiring
April 14, 2008
I'm not real familiar with RH_ShowHelp() for WebHelp as I work almost exclusively with compiled help. I do know that bookmarks don't work in compiled help if you shortcut around the .ali file (using the map number in the .hh file - e.g. #define topicname.htm#bookmark map number - instead of a mapID), generating exactly what you describe.

What is the syntax of your showHelp call? What do your .hh and .ali files look like?

John
Participant
April 14, 2008
Thanks for the help! You could be right, it might not even be possible to use context sensitive help to call a bookmark. However, I assumed it was since RoboHelp allows you to link a Map ID to a bookmark. In any case, information on the RH_ShowHelp() function is here.

I'm calling the function using the following parameters: RH_ShowHelp(0, 'http://server/project.htm>Window', HH_HELP_CONTEXT, 29). Map ID #29 is assigned to a bookmark in a topic, similar to this: topic.htm#bookmark.

I'm not familiar with .ali or .hh files, but here goes.... The .ali file basically lists each topic with its corresponding HTM file. I don't have a .hh file, however the .h file lists a #define for each mapped HTM file. One thing I noticed in the .h file is it looks like the # sign for the bookmark has been replaced with an underscore. So where it was topic#bookmark, it's now topic_bookmark. Not sure if that's significant....

Thanks again for you help!