Adding a target to Jump Button URL

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
sarrants
Propeller Head
Posts: 86
Joined: Tue Sep 18, 2007 6:04 am
Location: South Burlington, VT

Adding a target to Jump Button URL

Post by sarrants »

Is it possible to add a target="_blank" to the URL for a Jump Button? We'd like that button to open to our support page in a new browser, and not in the HTML Help window.
The things that we plan and measure are the things that get done.
Pete Lees
Sr. Propeller Head
Posts: 150
Joined: Thu Feb 09, 2006 12:33 pm
Location: Bracknell, Berkshire, UK

Re: Adding a target to Jump Button URL

Post by Pete Lees »

Hi, Steve,

You can do this by making the target of the Jump button a topic file like the one below.

Code: Select all

<html>
<body onLoad="hhctrl.Click();history.back()">

<object id="hhctrl" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" value="ShortCut" />
    <param name="Item1" value=",http://www.YourSupportSite.com," />
</object>

</body>
</html>
Clicking the Jump button opens this topic file and immediately fires the ShortCut control, which opens the specified Web site in the user's default browser. The history.back function causes the topic that the user was previously viewing to be returned to.

The only downside I can see to this technique is that, because it's using the ShortCut command of the HTML Help ActiveX control, it doesn't work when the help file is stored on a network drive. This is because of the security restrictions described in the following Microsoft Knowledge Base article:

http://support.microsoft.com/kb/323180/en-us

There's no real workaround to this, unfortunately.

Pete
Last edited by Pete Lees on Fri Feb 20, 2009 8:19 am, edited 1 time in total.
sarrants
Propeller Head
Posts: 86
Joined: Tue Sep 18, 2007 6:04 am
Location: South Burlington, VT

Re: Adding a target to Jump Button URL

Post by sarrants »

Thanks Pete. Looks like it might be a bit more work than I'd thought!
The things that we plan and measure are the things that get done.
Post Reply