Skip to main content
Alison - Clearly Stated
Inspiring
September 24, 2015
Question

Standard javascript not included in generated files

  • September 24, 2015
  • 1 reply
  • 682 views

RoboHelp HTML 8.0

Standard project but not using Table of Contents, index, etc.

Project does use drop-down expanded sections.

When I generate the Webhelp (RoboHelp, source and output on my local machine), the files generated contain some standard javascript elements.

The files were handed over to the development team, who put the source into their source control system.

They have since extracted the source and attempted to generate the help.

The process appears to work, but on examination the generated files are identical to the source files - no javascript.

They have RoboHelp installed on a remote machine and are running it over the network.

Is there something that could have been "switched off" in the project, or are they likely to be missing some component?

Thanks in advance,


Alison

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
September 24, 2015

How did they try to generate the files? Which output are they using?

Alison - Clearly Stated
Inspiring
September 24, 2015

They are generating WebHelp using the layout I created. Nearly everything in the layouts is de-selected, except for the selection of some conditional tags for exclusion.

The JavaScript I'm talking about is below, the stuff that RH always includes (or does in my version)... I'm not sure it's needed in this situation to make things work, but the release engineer wants what they generate from the source to match what I generated.

<script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
origWidth = innerWidth;
origHeight = innerHeight;
onresize = reDo;
}
onerror = null;
//]]>
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
-->
</style>
<script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
<script type="text/javascript" language="javascript" src="whver.js"></script>
<script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
<script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
<script type="text/javascript" language="javascript1.2" src="whlang.js"></script>
<script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>

</head>

<body><script type="text/javascript" language="javascript1.2">//<![CDATA[
<!--
if (window.gbWhTopic)
{
var strUrl = document.location.href;
var bc = 0;
var n = strUrl.toLowerCase().indexOf("bc-");
if(n != -1)
{
  document.location.href = strUrl.substring(0, n);
  bc = strUrl.substring(n+3);
}

if (window.addTocInfo)
{

}
if (window.writeBtnStyle)
  writeBtnStyle();

if (window.writeIntopicBar)
  writeIntopicBar(0);


if (window.setRelStartPage)
{
setRelStartPage("nexor_file_guardian.htm");

  autoSync(0);
  sendSyncInfo();
  sendAveInfoOut();
}
}
else
if (window.gbIE4)
  document.location.reload();

//-->
//]]></script>

Jeff_Coatsworth
Community Expert
Community Expert
September 24, 2015

I’m confused – if you generated the help & gave it the developers to include, why are they trying to generate it again?