Skip to main content
Inspiring
November 2, 2009
解決済み

Problems with frames

  • November 2, 2009
  • 返信数 1.
  • 1306 ビュー

I use RH 8 and create a WebHelp. I use a frameset which was created in RH in the project manager. This frameset is my start page. It separates the online help in two parts, the help page on the left and additional information on the right. All links know which frame should be used. That works fine.

Using the online help shows some problems:

1. Searching

I search for a word and klick on a result. The page opens. But my frameset will be destroyed. My links within the pages and in the TOC are no longer working - of course they miss their frame. How can I tell the search function to use one of my frames?

2. TOC-synchronization

The TOC will not be synchronized when viewing the help pages.

But once I used the search function and my frameset is destroyed it works fine. I tried it out with some links which I prepared for this.

Is there a solution?

Thanks

Danny

このトピックへの返信は締め切られました。
解決に役立った回答 Willam van Weelden

Hi,

Both your problems make sense. A frameset is not a topic, just a page that loads different topics in different panes. When you search, RoboHelp opens the topic directly and bypasses the frame. The TOC is not synchronized, because the current topic, the frameset, is not changed. You only load a different topic in the frameset.

As for your TOC synchronization problem, I don't see an easy solution, other than abandoning your frameset. For your other problem, you may get it to work by changing the output files. The TOC, Index and Search use hyperlinks which you can customize in the output files. Modify the hyperlinks, such as the one in whfhost.js (search) on line 410. Add target="<name of the frame you want the page to load in>", such as

sLine+="<dt><nobr><a href='"+gaTI.sTopicURL+"' target='myframe'>"+_textToHtml(gaTI.sTopicTitle)+"</a></nobr></dt>";

The do this for the TOC and the Index. Note, that once the frame killed, the TOC, Index and Search will stop functioning.

Greet,

Willam

返信数 1

Willam van Weelden
Inspiring
November 2, 2009

Hi,

Both your problems make sense. A frameset is not a topic, just a page that loads different topics in different panes. When you search, RoboHelp opens the topic directly and bypasses the frame. The TOC is not synchronized, because the current topic, the frameset, is not changed. You only load a different topic in the frameset.

As for your TOC synchronization problem, I don't see an easy solution, other than abandoning your frameset. For your other problem, you may get it to work by changing the output files. The TOC, Index and Search use hyperlinks which you can customize in the output files. Modify the hyperlinks, such as the one in whfhost.js (search) on line 410. Add target="<name of the frame you want the page to load in>", such as

sLine+="<dt><nobr><a href='"+gaTI.sTopicURL+"' target='myframe'>"+_textToHtml(gaTI.sTopicTitle)+"</a></nobr></dt>";

The do this for the TOC and the Index. Note, that once the frame killed, the TOC, Index and Search will stop functioning.

Greet,

Willam

DannyH_作成者
Inspiring
November 3, 2009

Thanks Willam, this solution works for the search problem. I can live with the TOC problem.

My frames are not killed because every topic uses them.

I only wonder if there is another solution with RH to create two columns one for the topic and one for additional information.

Regards

Danny

Willam van Weelden
Inspiring
November 3, 2009

Hi,

You may want to check out the Iframe. This basically lets you add a frame within a page, so you kind of embed another page. You can position them using a table or DIV elements.

If it's only about creating two columns and you don't need to load other pages, a simple table might suffice.

Greet,

Willam