Skip to main content
Known Participant
April 29, 2016
Question

Javascript function for Responsive HTML 5 Output

  • April 29, 2016
  • 1 reply
  • 909 views

Hi,

We are integrating Responsive HTML 5 output with our application.

Could you please let me know which Javascript function should we use for calling a particular content page (using mapid or map number) for Responsive HTML 5.

For example, in webhelp, we are using RH_ShowHelp(0, "roboHelp/index.htm", 0, 10).

I am using RoboHelp 2015.

Regards,

Prashant

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
April 30, 2016

For the JavaScript API, use 'RH_ShowMultiscreenHelpWithMapNo()' or 'RH_ShowMultiscreenHelpWithMapId' depending on what you need. Check the comment at the top of the RoboHelp_CSH.js file. It explains the calls and their options.

If you want to build the URL yourself and use a custom API, check this article on my site: https://www.wvanweelden.eu/articles/context-sensitivity-responsive-and-multiscreen-html5

Known Participant
May 2, 2016

Hi William,

Thank you.

With you suggestion, the help opens, but it opens only for few milliseconds. We expect that it should be opened until user navigates to another window, like the default behavior of WebHelp.

Are we missing anything?

Example of call:

"javascript:RH_ShowMultiscreenHelpWithMapNo('/roboHelp/index.html', '', 12)";

Regards,

Prashant

Willam van Weelden
Inspiring
May 2, 2016

The API opens a popup which opens another popup. Not all browsers allow this. If you update the function to include the parameter newwnd=false. That avoids the second popup and the help shouldn't flicker.