Page 1 of 1

WebHelp Frames Redirect Not Working

Posted: Tue Mar 29, 2011 10:11 pm
by shanet
Using Oxygen 12.1, building WebHelp from DITA...

The generated XHTML topics refer to a javascript function redirectFrames to show the frames and TOC if a topic was opened outside the frames context. But, this function refers to a variable "prefix" that never gets set. At least, in the javascript in my topics, it's being set to "".

Is there a build parameter I can pass to set this variable, or do I need to modify the javascript for this to work?

TIA,

Re: WebHelp Frames Redirect Not Working

Posted: Wed Mar 30, 2011 11:21 am
by Radu
Hi Shane,

The variable prefix is defined in the:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/webhelp/xsl/dita2webhelpImpl.xsl

You can search for var prefix =.

The link was designed to work when the WebHelp is deployed on a Web server.
Indeed when using the WebHelp from the local disk the link does not work properly as it does not explicitly specify the name of the index file. We'll look into this and see if we can improve this behavior.

You can remove the link completely by modifying the stylesheets.

Regards,
Radu