Skip to main content
Gravenstein
Inspiring
April 8, 2009
Question

Related Topics control via "JavaScript:RelatedTopics.Click" broken in RH8

  • April 8, 2009
  • 7 replies
  • 9900 views

In my RH6 project, I summon a hidden Related Topics control via "JavaScript:RelatedTopics.Click", which works just fine. However, this feature didn't survive the upgrade to RH8. It probably isn't directly related to the upgrade, as I haven't been able to construct this mechanism from scratch in RH8, either. Well, not in a way that works... A plain vanilla unhidden Related Topics control works OK, but not the JS construct.

  • WebHelp
  • RH8 (trial)
  • Project upgraded from RH6

Any hints or suggestions? I'd like to keep using this feature if at all possible.

Thanks,

G.

This topic has been closed for replies.

7 replies

March 7, 2011

I'd also like to know if this was fixed in Robo 9.

Captiv8r
Legend
March 7, 2011

Hi Jack

Indeed I can confirm that at least my own copy (which is in trial mode) does not suffer the issue and works as expected.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

March 7, 2011

Kewl, Ricardo. Thanks!

March 24, 2010

The more I look, the more confused I get.

It apears to me that, in some cases, the Related Topics control is translated into some code when published that looks something like this:

onclick="var e; if (parseInt(navigator.appVersion)>=4){e=event;}  if (parseInt(navigator.appVersion) >=2 && typeof(PickupDialog_Invoke) == 'function') PickupDialog_Invoke(e,'','Claims','Claims.htm','Endorsement: Additional Interested Party','EndorsementAIP.htm','Endorsement: Basic Information','EndorsementBasicInfo.htm',...

etc.

This control  works! But there is no evidence of a DesignerControl.

In other cases, the related topics OnClick that is in the source file is retained after publishing:

<a href="JavaScript:RelatedTopics.Click()"><img id="header_reltopics" src="../cssimgs/btn_related.gif" alt="btn_related.gif" style="border: none;" width="105" height="26" border="0" />

In this case, there is no DesignerControl and no replacement code, just a button that does nothing,.

I cannot ascertain why one publishes with one format and the other in a diff fashion.

This is blowing my mind. I'm the only one dealing with this?

Never did get the script to run that patches the ID...

March 24, 2010

Script ran. Got "Bad token Manager" popup.

.

March 24, 2010

Can't seem to get the script to execute. Just crashed Robo8.

This related topics defect has been around a while.

C'mon Adobe, let's get 'er done.

December 15, 2009

Hello.  I'm jumping in this thread to ask a related question.   Rick (robowizard) provided a tip on a workaround on how to get our shortcuts working again, and I submitted a bug report.  In response to the bug report Praful supplied a link to the ZIP file and I have downloaded.  I've also asked some further questions of Praful regarding how/when/where to execute the scripts.

No one has mentioned if they are using RH8 in  RoboSource control.  Will RSC throw up a red flag due to the changes made by the script? I'm thinking  it might complain about changes made outsite the project.  Are there other issues when using RSC related to this fix?

Hopefully this is not too vague of a question, but this whole issue is putting us in deeper water than we are used to, and I want to make sure as many bases as possible are covered before running the scripts.

Thanks for any information anyone can provide.

Joe

Participant
January 12, 2010

Hello everybody, and Happy new year.

I have the same problem occuring to my projects.

Praful's javascripts seems to be the solution, but I didn't manage to execute them. Can someone explain me how/when/where to execute the scripts ?

Thank you in advance.

Nathalie.

January 12, 2010

Nathalie,

Below are the instructions to use the scripts slightly modified.   I have not had a chance to test this yet on my project.  BE CAREFUL!

There is a user forum thread @ http://forums.adobe.com/message/2342314, where this script file was uploaded.  You need to get it if you have not.

The zip file contains 3 script files as listed below.  Use the one that applies to your project (Webhelp or HTML/CHM).

· “ Related Topics From Javascript Call ” which just patches the project and does not generate the output.

· “ Related Topics From Javascript Call and generate Webhelp ” which patches the project and generate webhelp output

· “ Related Topics From Javascript Call and generate CHM ” which patches the project and generate CHM output

Then follow these steps to execute the script file.  IN STEP 5 YOU MAY WANT TO IMPORT A DIFFERENT SCRIPT extracted from the ZIP file as it pertains to your own situation (Webhelp or CHM output).

1.  Backup the project, before proceeding further. 

2.  Download the zip file and extract the file.

3.  Open RoboHelp 8, and go to view > Pods > Script Explorer. This will open a script explorer pod.

4.  Right Click on the script explorer pod area and it will show a context menu, select Import menu option.

5.  Select the script “Related Topics From Javascript Call and generate CHM.jsx” file which you extracted.

6.  You are done with import of the script file.

7.  Open the project where you want to generate the CHM file.

8.  In the Script Explorer select the imported script file and Right click and select Run and this will run the script file.

August 20, 2009

I tried the fix suggested by RoboWizard below and it did not work for me. I'm using RH8 and IE8. It is worth noting that this problem does not occur in Firefox 3.5.2.

It's also worth noting that if you move the Related Topics button to the top of the page, it works fine. I tried putting in at a random spot in the middle of the topic and it did not work.

Bob

EileenPalsson
Inspiring
October 20, 2009

Rick and Gravenstein,

First of all, I really appreciated being able to find info about this error in the forum. Thank you for that!

Any word on when we can expect a fix from Adobe? (If not, how can I nag them?) I have a help project that contains many hundreds (maybe even thousands) of these links. Every single one of them is generating a script error. A solution that has to be updated using a script each time changes are made in the WYSIWYG view is not viable except as an emergency measure.

(I haven't even tried the fix offered in this thread. The sheer volume of changes necessary precludes manual corrections.)

Thanks

Eileen

RoboColum_n_
Legend
October 20, 2009

Hi Eileen.

Adobe, like most other software vendors, are not in the habit of announcing when a service/patch release is to be released least of all what will be included in it. All we can do is sit and wait.

Have you considered using a good find and replace tool. FAR is my favourite but BkReplacEm is also widely used and is free.


Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.

RoboWizard
Inspiring
April 8, 2009

Hi there

It will still work, but now requires further tweaking!

Before I tell you how to fix it you have to promise to enlist the armies to flood the Adobe RoboHelp developers with Bug Reports on it!

Click here for the Bug Report!!!

Okay, here's the deal. After you insert the control and all that, you need to pop into the HTML code and assign the ID to the code. I'll post some screen captures below. (Click the images to see in full size view)

RoboHelp 7

RoboHelp 8


So all you need to do is to add in the missing ID for the RoboHelp 8 code.

Cheers... Rick

Gravenstein
Inspiring
April 8, 2009

Rick, you are a giant among men!  I have submitted a bug report.

I am now about halfway there. This is clearly the answer, but I'm stuck on a couple of details. First and foremost, how do I get changes to stick in HTML view? I know I saw something about that somewhere in here, but now I can't find it. I got the id change to stick in one topic, and it now works in Preview mode. However, it choked when I generated output. If I can get the @#$! changes in HTML view to stick, it'll make testing a whole bunch easier!

Thanks! and ever hopeful...

G

RoboWizard
Inspiring
April 8, 2009

Hi again

Well Carp! FrapDoodle even!

Okay, I may have a workaround here. Give this a go.

I'm attaching a text file for you to use as a guide. It may take half an hour or so for the forums to approve it and make it available once I post. Until then, you will see "QUEUED". You will need to refresh the web page to check the status. Once it's been uploaded, there will be a link.

  1. Download the attached text file and save it to your hard drive.
  2. Open Windows Notepad and open the text file.
  3. Tweak the control in HTML view to add in the missing identifier, then select the workhorse code and copy it to the Windows Clipboard.
  4. Paste the code into the instance of Windows notepad.
  5. Massage the Notepad Template I've supplied per the instructions, then select the modified code and copy to the Windows Clipboard.
  6. Return to editing the topic in Design view. Delete the control from the page.
  7. Click Insert > HTML > Advanced > Script and a dialog should display.
  8. Paste the code into the dialog and click OK.
  9. Compile or Generate and test!

Please let me know if or how well this worked for you.

Cheers... Rick