Skip to main content
Oct 2, 2008 8:13 AM UTC
Answered

hyperlink to topic in second window

Hello everyone

I am trying to create a hyperlink from a topic displayed in the Main window of a .chm to a topic that is displayed in a Second window of the .chm.

In the past I have created a link from a button to display a topic in a window named About using a Related Topic.htm technique. I have tried using this technique using the same Related Topic.htm but it does not seem to work.

There may be a more simple way to do this but I don't know ?

All help gratefully received.
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Oct 6, 2008 2:57 PM UTC
Ok Rick, I might give it a try but I won't hold my breadth.

As for making topics appear in a defined second window, you instructions were spot on, thank you very much. I actually had 3 links to topics that I wanted to appear in a second window. so by leaving the first link as

JavaScript:RelatedTopics.Click();

then changing the second and third to

JavaScript:OBJECT1.Click(); and JavaScript:OBJECT2.Click();

and defining the Second window it all worked as I wanted.

Once again many thanks, you guys truly are RoboHelp gurus

15 replies

Correct answer
Oct 6, 2008 2:57 PM UTC
Ok Rick, I might give it a try but I won't hold my breadth.

As for making topics appear in a defined second window, you instructions were spot on, thank you very much. I actually had 3 links to topics that I wanted to appear in a second window. so by leaving the first link as

JavaScript:RelatedTopics.Click();

then changing the second and third to

JavaScript:OBJECT1.Click(); and JavaScript:OBJECT2.Click();

and defining the Second window it all worked as I wanted.

Once again many thanks, you guys truly are RoboHelp gurus
Translate
Oct 6, 2008 1:45 PM UTC
That's it. Thanks Rick.

The only problem now is ensuring the defined window does not change when switching between HTML and Design view.

I do seem to remember that in one of your tips you suggested changing the classid code, e.g. CLASSID="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11".

Is that right ?
Translate
RoboWizard
Inspiring
Oct 6, 2008 2:26 PM UTC
Hi again

I'd say to avoid that. It was a workaround offered for a very old version of RoboHelp HTML. IIRC, Jason Eberwein of eHelp offered that. It caused RoboHelp to gag a bit but it worked (at the time). I seem to recall that latter versions of RoboHelp didn't like it at all. Try it if you like, after all it's an easy fix if indeed something changed and the Adobe guys have made it work. But be very wary of what happens after. Not that it will like kill your project or anything. At worst, it simply won't work or may cause RoboHelp to crash. But usually that's an easy recovery. Particularly if you know exactly which topic caused the issue.

Cheers... Rick
Translate
Oct 2, 2008 1:17 PM UTC
Thanks Pete
Are you suggesting not to use a hyperlink but use the Related Topics command from the Navigation Control Menu. Then edit the code to mimic what you shown ?
Translate
Participating Frequently
Oct 2, 2008 4:53 PM UTC
Hi, Sean,

Yes, that's right.

Pete
Translate
Oct 3, 2008 8:06 AM UTC
OK, that works Pete, thanks

But why does the text not appear the same as the rest of the text on the line ?

It also has a box around it that does not appear in the final chm file. I am guessing this is the Related Topic control area.

And this causes another problem in that when you change from HTML view to Design view you lose the second window configuration.
Translate
Oct 2, 2008 11:13 AM UTC
In fact it is a bit more simple than that, just like me.
All I want to do is create a hyperlink that wil show a topic from the same chm in a second window.

Does that make sense... ?
Translate
Captiv8r
Legend
Oct 2, 2008 12:33 PM UTC
Hi there seaandsamuel and Colum

Admittedly, I haven't tried the technique of using a Related Topics control in RoboHelp 7. Not sure if I tried it in 6 either. So it's possible that something got broken where it used to work. Could be the RoboHelp side and it could be the Microsoft side, what with all the recent patches and whatnot.

Colum, what is being referred to here is using a Related Topics control to link to a different topic inside the same .CHM file and have that topic open up in a secondary window you have defined for the .CHM.

It's really a shame that we have to jump through hoops to do this. I remember voicing a concern over it and bringing it up in beta after beta back in the eHelp days. But it was always met with silence. I guess the development team back then either considered it was too difficult to code in or not enough folks would actually want it so as to warrant the change. But I digress...

seandsamuel, if I get a moment during my RoboHelp class today (and if I remember ) I'll try to test it in 7. I do recall that X5 was really fussy with it and I had to struggle to finally coax it to work.

Cheers all... Rick
Translate
Participating Frequently
Oct 2, 2008 12:54 PM UTC
Hi, all,

If it's any help, here is the code of a Related Topics control that opens the target topic in the nominated window.

<object classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Related Topics">
<param name="Button" value="Text:Text to display on button">
<param name="Window" value="About">
<param name="Item1" value="Topic Title;YourHelpFile.chm::/TargetTopic.htm">
</object>

Even though the source and target topics are in the same .chm file, it's necessary to prepend the .chm file name to that of the target topic ("YourHelpFile.chm::/TargetTopic.htm").

The code above works fine in my test .chm file, but admittedly I didn't use RoboHelp to create it.

Pete
Translate
RoboColum_n_
Legend
Oct 2, 2008 10:27 AM UTC
OK I've had a coffee now and I'm guessing the linked topic isn't in the TOC so you can't change the properties of the TOC entry to display in the About window? It sounds like you had it working but no more. Have you checked and double checked the path in the redirect topic? Has the topic been moved/renamed? If all this is OK, can you tell us what happens when you click on the link.
Translate
Oct 2, 2008 8:27 AM UTC
Hello Colum

Sorry if the question was a bit vague. Like you it is still quite early, but luckily for me I have actually had a cup of coffee.

Anyway you are right on both counts, I am trying to show a topic in a second window of the same chm. The Related Topic technique I refered to is something I have pick out frorm Rick Tips and Tricks in the past, and use on all my help file.

Thanks for you interest
Translate
RoboColum_n_
Legend
Oct 2, 2008 8:21 AM UTC
I think you'll have to explain this a bit more as I haven't even had my first cup of coffee today! Are you referring to a single CHM open in two windows? It sounds like you are. And what exactly is "a Related Topic.htm technique"? Is this some sort of redirect topic?
Translate