Highlighted

Adding a button that opens a webpage in the topic window.

New Here ,
Dec 31, 2019

Copy link to clipboard

Copied

I am needing to add a button to the toolbar that will open a webpage in the topic window. I know how to add a button and have it link to the external webpage by opening a new window but I am wanting to use the topic window as the target. Is there a library of JavaScripts where I can find the correct code to add?

 

Thanks

Hi mariaj46098905, 

I believe that your problem could be solved by changing the "_self" to "rh_default_topic_frame_name". 

  1. Under 'Custom Buttons' add new button and icon.
  2. Select the new button to change its properties.
  3. Under ‘JAVASCRPIT’ ==> ‘OnClick’ add the JavaScript Code: window.open("www.your_url_here.com", "rh_default_topic_frame_name") 
    This should open the specified URL in the topic IFrame.
TOPICS
Output presets

Views

242

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Adding a button that opens a webpage in the topic window.

New Here ,
Dec 31, 2019

Copy link to clipboard

Copied

I am needing to add a button to the toolbar that will open a webpage in the topic window. I know how to add a button and have it link to the external webpage by opening a new window but I am wanting to use the topic window as the target. Is there a library of JavaScripts where I can find the correct code to add?

 

Thanks

Hi mariaj46098905, 

I believe that your problem could be solved by changing the "_self" to "rh_default_topic_frame_name". 

  1. Under 'Custom Buttons' add new button and icon.
  2. Select the new button to change its properties.
  3. Under ‘JAVASCRPIT’ ==> ‘OnClick’ add the JavaScript Code: window.open("www.your_url_here.com", "rh_default_topic_frame_name") 
    This should open the specified URL in the topic IFrame.
TOPICS
Output presets

Views

243

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 31, 2019 0
Adobe Community Professional ,
Jan 01, 2020

Copy link to clipboard

Copied

You haven't said which version of RoboHelp you are using or, if 2019, Classic or new UI. Also you haven't said whether you are using a responsive layout or traditional web skin.

 

I am going to assume you are using a web skin in a Classic layout. Create a topic with an iFrame in it and link to that. I think that will do what you want.


www.grainge.org

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 01, 2020 1
New Here ,
Jan 02, 2020

Copy link to clipboard

Copied

Sorry, I'm using Robohelp 2019 and this would be for a Responsive Layout.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
Adobe Community Professional ,
Jan 02, 2020

Copy link to clipboard

Copied

Content removed as it was a response to a post that seems to have been an attempt to post a link to site to gain traffic.


www.grainge.org

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
Adobe Community Professional ,
Jan 02, 2020

Copy link to clipboard

Copied

Content removed as it was a response to a post that seems to have been an attempt to post a link to site to gain traffic.


www.grainge.org

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
New Here ,
Jan 02, 2020

Copy link to clipboard

Copied

We use Robohelp for online manuals for our case management systems. In previous versions, (which I wasn't involved in), they included a button on the toolbar that would open our eService webpage in the topic window.  I was able to figure out how to add an iFrame housing that webpage in a topic, (thank you!), that might suffice for the option of linking to our eService page for now. Is there a way to have the iFrame fill the entire topic window without the scrollbars so that it looks like the webpage is the topic and not nested in a frame? (if that makes sense)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
New Here ,
Jan 02, 2020

Copy link to clipboard

Copied

I should add that I understand how to specify the dimentions of the frame, I was just wondering if there is a setting for size relating to percentage rather than pixels in order for the frame to be responsive.

 

Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
Adobe Community Professional ,
Jan 02, 2020

Copy link to clipboard

Copied

Not that I know of. Sorry.


www.grainge.org

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
New Here ,
Jan 02, 2020

Copy link to clipboard

Copied

I'm a little rusty on my coding but I took a stab at it and was able to edit the HTML to specify percentages and was able to get it to fill the contents of the topic window, at least for the width, and it responds to the tablet and mobile sized windows. I'm still going to be looking for a solution for linking from a toolbar button but for now this will work fine. Thanks for your help 🙂

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
Adobe Community Professional ,
Jan 02, 2020

Copy link to clipboard

Copied

You can add a button in the skin editor.


www.grainge.org

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0
New Here ,
Jan 02, 2020

Copy link to clipboard

Copied

Yes, I'm able to add a button and have it open the webage in a separate window but I am wanting the webpage to open in the topic window so it doesn't take the user out of the robohelp document. When I look at the options for adding the button I see that there are options for JavaScript to execute onclick. I'm assuming there is code that can be added that specifies the topic window as the object but that is the step that I don't know.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 02, 2020 0