Custom Toolbar Item Javascript

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets

Custom Toolbar Item Javascript

Postby jblackwood on Fri Jan 23, 2009 2:38 pm

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

Re: Custom Toolbar Item Javascript

Postby Dave Lee on Mon Jan 26, 2009 2:13 am

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.
Dave Lee
Master Propellus Maximus
 
Posts: 5846
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Custom Toolbar Item Javascript

Postby jblackwood on Mon Jan 26, 2009 8:46 am

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


Return to Web-based Outputs

Who is online

Users browsing this forum: No registered users and 11 guests

cron