WebWorks Help 5.0 Javascript Example

Two separate ePublisher Express projects were generated to create two separate helpsets. Each helpset contains a TopicAlias entry called "Topic1". In the "Merge Settings" configuration for each ePublisher Express project, the top group's "context" value was set to "volume1".

To access each helpset, create a single WWHAPI_Object instance for each one helpset, as in "GlobalHelpsetA" and "GlobalHelpsetB". Then simply call the javascript API call DisplayHelp() or DisplayHelpWithNavigation() as demonstrated below. A new browser window is loaded only for each Object instance; subsequent calls will not invoke a new window.

Note: You will have to initialize the base url path, either by modifying the function BaseHelpURL() in the file: wwhbaseurl.js and/or the initialization of each object.

GlobalHelpsetA.WWHelp_DisplayHelp('volume1','Topic1') Click Here
GlobalHelpsetB.WWHelp_DisplayHelpWithNavigation('volume1','Topic1') Click Here
GlobalHelpsetA.WWHelp_DisplayHelpWithNavigation('volume1','Topic1') Click Here