I have created a custom toolbar button to link to a URL. I can get it to work OK by opening a new window with the link using this syntax in the event property group under the skin styles tab:
window.open("http://www....")
However, what I would really like it to do is to open inside the help window inside the skin. Does anyone know the syntax to make the link open inside the help topic window?
Linking a URL to a Custom Toolbar Button
-
OpenScanner
- Jr. Propeller Head
- Posts: 2
- Joined: Mon Jan 14, 2013 9:34 am
Re: Linking a URL to a Custom Toolbar Button
What help target are you using; WebHelp, HTML5 help?
This should work for WebHelp:
The OnClick property would look something like this:
That sets the body frame to have the content from ../Content/Topic.htm - change this to your topic file name, and change the folder path too if it's different.
The path is the relative path in your output files, from the Skin/Toolbar.htm file to your topic.
This should work for WebHelp:
The OnClick property would look something like this:
Code: Select all
parent.frames["body"].location.href = "../Content/Topic.htm";The path is the relative path in your output files, from the Skin/Toolbar.htm file to your topic.
-
OpenScanner
- Jr. Propeller Head
- Posts: 2
- Joined: Mon Jan 14, 2013 9:34 am
Re: Linking a URL to a Custom Toolbar Button
HTML5.
So with referencing a website instead of a topic would it look like this?:
parent.frames["body"].location.href ="http://www...."
So with referencing a website instead of a topic would it look like this?:
parent.frames["body"].location.href ="http://www...."
Re: Linking a URL to a Custom Toolbar Button
It would be different for HTML5, as that uses an iframe with a different name:
Code: Select all
parent.frames["topic"].location.href = "http://www.madcapsoftware.com/";