Skip to main content
Inspiring
September 30, 2016
Question

Automaticly Jump to part inside a topic using Map-id

  • September 30, 2016
  • 1 reply
  • 777 views

When you use following code you can open a page xxx.htm and jump directly to a part of the screen. This by setting an id-name behind the #-sign.

window.open("http://servername/xxxx.htm#idlink", "_blank", "toolbar=no,scrollbars=yes,resizable=yes,top=100,left=500,width=700,height=400");

I use Robohelp versie 2015. I link a word-document to a project of Robohelp.

When attempting to create a map-id (.h-file), you see in the right pane items such as

xxxx

xxxx#yyyy

I assumed that xxxx#yyyy opens the topic xxxx and jumps into the topic to the item yyyy. (according to the html-code above).

When I use the view-button, xxxx and xxxx#yyyy, the result is the same. The topic xxxx opens at the first line.

I assing the following in the map-id (left pane)

Map ID        Map #         Topic

imgxx          1000            xxxx#yyyy

By using the script RoboHelp_CSH.js, you can call the function RH_ShowHelp.

<a href='javascript:RH_ShowHelp(0, http://servername/xxxx.htm>largeWindow", HH_HELP_CONTEXT, 1000)'><img id="imgxx" name="imgxx" align="absMiddle" SRC="blue_question.png" height="10"></a>

I open a frameset starting from the page index.htm, which opens the page xxxx.htm at the right screen.

Is it possible to jump to a part of the page xxxx.htm by using the function RH_ShowHelp, just like the way I open a page directly (see window.open(...) above )?

When you selectively can jump to a specific part, the advantage is, that you can scroll directly to another part without using the TOC.

This topic has been closed for replies.

1 reply

Captiv8r
Legend
September 30, 2016

Hi there

I notice you reference xxxx#yyyy. Shouldn't the correct syntax be xxxx.htm#yyyy?

Cheers... Rick

Inspiring
October 3, 2016

Captiv8r,

I totally agree.

The problem is, that the program 'RoboHelp' creates the link.

I don't know of the program can put the '.htm'-part in the link.

In the program 'Robohelp' they call that part a topic, so it can have another reason/intention than as a link.

greatings