Highlighted

RH2019, Browser based Help Popup closes in Chrome.

New Here ,
Aug 01, 2019

Copy link to clipboard

Copied

We are using RoboHelp 2019 Classic and using The Helper function for Browser based Help: function RH_Show_BrowserBasedHelp(hParent, strHelpPath, strCategory,strWnd, uCommand, nMapId) to open context sensitive help in a popup.

When help popup is open, if we go to a different parent page the popup closes immediately. This happens only in Chrome(75) only not in IE(IE11).

After investigating the issue we found this is happening because of some code present in whcsh_home.htm. Below is the code snippet which is causing the issue:

function window_OnBeforeUnload()

{

// Close the popup window to solve the focus problem. window.focus() does not work in all browsers.

// When we are loaded the next time with a new ID, we will open a new popup window.

// This makes sure that the popup window is opened on top.

if (goNewWnd && !gbIE) // Skip IE because window.focus() works fine for IE. Besides IE displays ActiveX warning everytime we open a new window.

     goNewWnd.close();

}

}

Please let me know is there any fix/workaround, so that the popup remains open in chrome even if we move to a different parent page.

Views

75

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

RH2019, Browser based Help Popup closes in Chrome.

New Here ,
Aug 01, 2019

Copy link to clipboard

Copied

We are using RoboHelp 2019 Classic and using The Helper function for Browser based Help: function RH_Show_BrowserBasedHelp(hParent, strHelpPath, strCategory,strWnd, uCommand, nMapId) to open context sensitive help in a popup.

When help popup is open, if we go to a different parent page the popup closes immediately. This happens only in Chrome(75) only not in IE(IE11).

After investigating the issue we found this is happening because of some code present in whcsh_home.htm. Below is the code snippet which is causing the issue:

function window_OnBeforeUnload()

{

// Close the popup window to solve the focus problem. window.focus() does not work in all browsers.

// When we are loaded the next time with a new ID, we will open a new popup window.

// This makes sure that the popup window is opened on top.

if (goNewWnd && !gbIE) // Skip IE because window.focus() works fine for IE. Besides IE displays ActiveX warning everytime we open a new window.

     goNewWnd.close();

}

}

Please let me know is there any fix/workaround, so that the popup remains open in chrome even if we move to a different parent page.

Views

76

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

Have something to add?

Join the conversation