Automate your RoboHelp tasks to save hours. See my out of the box solutions.
Do you need a custom solution or do you want more information? Contact me to find out how much time you can save!

In WebHelp, the buttons for the TOC, index, search and glossary will only make the navigation pane visible: When the TOC is already opened, clicking the TOC button again will not hide the TOC. With the attached script you can create buttons that will show and hide the navigation pane based on the opened pane. For example: You click the TOC button to open the TOC. Click the TOC button again and the navigation pane will be hidden.
A special thanks goes to Abbey Schulz who helped setting the requirements and helped testing.
![]() |
Download JavaScript file. |
Follow these steps to set up your buttons:
ShowHide TOC. You can set any text or image as you see fit.setpane('toc');External JavaScript fileand choose the JavaScript file you just added as a baggage file.setpane('idx');setpane('fts');setpane('glo');//in front of the function call.The code in the file will look something like:
//addButton("toc",BTN_TEXT|BTN_IMG,"Contents","","","","",0,0,"17_help.png","17_help.png","","17_help.png","","");
addButton("searchform",BTN_TEXT,"","","","","",0,0,"","","","","","");
addButton("custom19953",BTN_TEXT|BTN_IMG,"Contents","","setpane('toc');","","",0,0,"16_help.gif","16_help.gif","","16_help.gif","","");
Copyright Willam van Weelden. All rights reserved. - Terms and conditions - Privacy policy - Taxes apply to all prices. Back to Top
Comments
Hi William,
Sorry to say that since I upgraded to Robohelp 10 this javascript is giving me errors due to the following section:
if(cust_navpanevisible() && (window.currentpane == pane)) {
var oMsg=null;
oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null);
SendMessage(oMsg);
I can successfully show the navigation pane, but when I click again to hide I get the following error in FireFox developer tools:
ReferenceError: SendMessage is not defined.
How can I fix it?
I've updated the script to also support RoboHelp 10. Please redownload the script and replace your current script with the new one.
Add new comment