Custom Toolbar Item Javascript

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
jblackwood
Propeller Head
Posts: 93
Joined: Tue Jul 25, 2006 8:51 am
Location: NC

Custom Toolbar Item Javascript

Post by jblackwood »

I created a new class for a custom button which I added to my WebHelp toolbar. However, I am having a problem with the javascript command needed to call the topic I want when the button is clicked. If I want the topic to just open in the browser window, would somebody help me with what the command for the OnClick property would look like?

Thanks!
Jeff
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Custom Toolbar Item Javascript

Post by NorthEast »

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.
jblackwood
Propeller Head
Posts: 93
Joined: Tue Jul 25, 2006 8:51 am
Location: NC

Re: Custom Toolbar Item Javascript

Post by jblackwood »

Thank you! That worked just fine. Now, I just need to find just the right button to use and get the shading for the press and hover done. Thanks again for the help!
Post Reply