Skip to main content
Known Participant
May 2, 2016
Answered

Responsive HTML5 Help - RH 2015- CSH help flashes open then closes

  • May 2, 2016
  • 2 replies
  • 780 views

When the developers integrated the Responsive HTML 5 Help into our company's mobile app, the CSH help topics flash open then close right away in Chrome and Safari. However, it works fine in Internet Explorer. Has anyone encountered this?  

This topic has been closed for replies.
Correct answer Willam van Weelden

There is a problem with 2 popups being opened. One by the script and RH opens another one. If you use the below function, it should work. You will have to parse an empty window string to make it work.

function RH_ShowMultiscreenHelpWithMapNo(szHelpURL, szWnd, dwMapNo)

{

var szParam = "?rhnewwnd=0&rhcsh=1";

if (szHelpURL == "")

return;

if(szWnd)

szParam += "&rhwnd=" + szWnd;

if(dwMapNo > 0)

szParam += "&rhmapno=" + dwMapNo.toString();

var szURL = szHelpURL + szParam;

var sParam = "left="+screen.width+",top="+screen.height+",width=600,height=400";

window.open(szURL, "__webCshStub", sParam);

}

2 replies

July 22, 2016

We just upgraded to 2015 Update 3 and this started happening to us too.

Did anyone ever figure it out?

Willam van Weelden
Inspiring
August 1, 2016

What was the previous version you used? Did you move from another output, or did it start occuring when you went from a specific version to the update 3?

August 1, 2016

We were on Update 2 before.

After upgrading we got a bunch of new files in the whxdata folder glo.new.js, idx.new.js, idata1.new.js, etc. I dont know if these had anything to do with the problem.

Good news though. We were able to fix it by uninstalling robohelp and then reinstalling and regenerating the output. The .new files above went away and the window stayed open.

Willam van Weelden
Inspiring
May 2, 2016

Could it be related to this: Re: Javascript function for Responsive HTML 5 Output

How are your developers calling the help?

sumaya77Author
Known Participant
May 3, 2016

They are using this script:

                “RH_ShowMultiscreenHelpWithMapNo('help/index.htm', '', 10)”, where 10 indicates the Map ID.

We had a lot of trouble with creating a script that worked. Then for some reason, we encountered the problem I described where the CSH help opens for 1 second and closes.       

Willam van Weelden
Willam van WeeldenCorrect answer
Inspiring
May 5, 2016

There is a problem with 2 popups being opened. One by the script and RH opens another one. If you use the below function, it should work. You will have to parse an empty window string to make it work.

function RH_ShowMultiscreenHelpWithMapNo(szHelpURL, szWnd, dwMapNo)

{

var szParam = "?rhnewwnd=0&rhcsh=1";

if (szHelpURL == "")

return;

if(szWnd)

szParam += "&rhwnd=" + szWnd;

if(dwMapNo > 0)

szParam += "&rhmapno=" + dwMapNo.toString();

var szURL = szHelpURL + szParam;

var sParam = "left="+screen.width+",top="+screen.height+",width=600,height=400";

window.open(szURL, "__webCshStub", sParam);

}