Hi,
I have an aspx page that sits outside of the my WebHelp root directory, and I need to open it from a toolbar icon and TOC entry, but cannot get the link to resolve.
My help sits on: Site/Platform/HelpFiles/Build/Lang/Default.htm.
The aspx page sits on: Site/Platform/Page.aspx.
I cannot use a fixed path, as the 'Platform', 'Build' and 'Lang' directories change.
Can anyone assist?
Thanks,
Susan
How to open external topic from toolbar button?
-
SusanNicholson
- Propeller Head
- Posts: 14
- Joined: Tue Feb 27, 2007 7:33 am
- Location: Durban, South Africa
Re: How to open external topic from toolbar button?
We have a couple toolbar buttons like that. What we chose to do was have a topic in the project which contains only a "jump" to that external topic. We open ours in another window and returns the current window to the calling topic, but you could probably open it directly. Since you are using a relative path, you would need to change the path to be relative. You could also use Javascript to find the current path (document.location) and use a substring to strip the /HelpFiles/Build/Lang folders, then insert it as a full path rather than a relative one.
Code: Select all
<head>
<script type="text/javascript">
<!--
function onw()
{
window.open("http://www.website.com","_blank");
}
//-->
</script>
</head>
<body onload="onw();history.back()">
</body>