Highlighted

Javascript function for Responsive HTML 5 Output

Community Beginner ,
Apr 29, 2016

Copy link to clipboard

Copied

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

TOPICS
HTML5 layout

Views

461

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Javascript function for Responsive HTML 5 Output

Community Beginner ,
Apr 29, 2016

Copy link to clipboard

Copied

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

TOPICS
HTML5 layout

Views

462

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 29, 2016 0
LEGEND ,
Apr 30, 2016

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 30, 2016 0
Community Beginner ,
May 01, 2016

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 01, 2016 0
LEGEND ,
May 02, 2016

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 02, 2016 0
Community Beginner ,
May 02, 2016

Copy link to clipboard

Copied

Thanks William.

You mean "rhnewwnd=1" should be set to 'false' in RoboHelp_CSH.js, correct?


Let me check this once.

Regards,

Prashant

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 02, 2016 0
LEGEND ,
May 02, 2016

Copy link to clipboard

Copied

rhnewwnd=0

Sorry for the confusion

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 02, 2016 0
Community Beginner ,
May 02, 2016

Copy link to clipboard

Copied

No Probs.

Prashant

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 02, 2016 0