Skip to main content
Known Participant
September 21, 2009
Question

Here A Popup, There A Popup...

  • September 21, 2009
  • 1 reply
  • 2521 views

I have thousands of topics and hundreds of them have multiple popups.  I compile, view a topic, click the link and the popup appears exactly where I expect it to appear, positionally based on the link I clicked.  I then open a different topic, click a link in the same spot (topics have the same look) but that popup appears in the top left corner of the topic.  This happens with all of the popups on the page.  I've checked dozens of topics and the vast majority of popups are appearing in the top left, nowhere close to the links from which they were triggered.

I looked at the HTML to see if there was anything funky in there but the BSSCPopup calls are the same, except for the targets.

Has anyone else has this problem with eHlpDhtm.js?  If so, what can I do to fix this problem?

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
September 21, 2009

Hi,

Assuming you're using RoboHTML 8: Read this post and use the last ehlpdhtm from Praful Jain.

Greet,

Willam

Known Participant
September 21, 2009

Hi, yes I am using 8.

I tried the modified .js but the popup positioning did not change.  I looked at the changes made to it and they seem to only relate to scrolling behaviour, not coordinates.

Known Participant
September 23, 2009

Hi,

Can you share a simple project where this issue is happening? Also you can zip the output folder and share it.

This will help root cause the issue.

-Praful


After all that, the problem is not with the ehlpdhtm.js.

It turns out that the difference between my topic that works and my topic that didn't work was an id tag on the href that had the BSSCPopup javascript in it.  Since we had thousands of files, we used macros to embed the javascript:BSSCPopup(' '); around all of the thousands of links.  Inside of RoboHelp, these popups appear in the CORRECT position, but once outside in the CHM or just directly accessing the .HTM files via IE, the popup will appear in the top left corner.

Sure enough, when I opened the topic in RoboHelp, right-clicked on the incorrectly positioned popup link to look at the properties, touched NOTHING, closed the window, it so helpfully added the id tag it needed and now the popup appears in the correct position.

My problem now is that I have thousands of files that do not have the id tags on the href links - I can't manually open every one and do that to every link.  So now, I'm going to have to write another macro to parse every file, counting the BSSCPopup instances as they go, embedding the id tag and then shoving this at the bottom before the closing body tag:

<?rh-script_start ?><script type="text/javascript" language="JavaScript1.2">//<![CDATA[
if( typeof( FilePopupInit ) != 'function' ) FilePopupInit = new Function();
FilePopupInit('a1');
//]]></script><?rh-script_end ?>

I think I need a drink.