Linking a URL to a Custom Toolbar Button

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
OpenScanner
Jr. Propeller Head
Posts: 2
Joined: Mon Jan 14, 2013 9:34 am

Linking a URL to a Custom Toolbar Button

Post by OpenScanner »

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?
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Linking a URL to a Custom Toolbar Button

Post by NorthEast »

What help target are you using; WebHelp, HTML5 help?

This should work for WebHelp:

The OnClick property would look something like this:

Code: Select all

parent.frames["body"].location.href = "../Content/Topic.htm";
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.
OpenScanner
Jr. Propeller Head
Posts: 2
Joined: Mon Jan 14, 2013 9:34 am

Re: Linking a URL to a Custom Toolbar Button

Post by OpenScanner »

HTML5.

So with referencing a website instead of a topic would it look like this?:

parent.frames["body"].location.href ="http://www...."
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Linking a URL to a Custom Toolbar Button

Post by NorthEast »

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/"; 
Post Reply