Skip to main content
October 10, 2012
Question

RH10 removes script references in the master page header

  • October 10, 2012
  • 1 reply
  • 1300 views

Hi all,

I just noticed that RH10 removes references to script files that I place in the header section of the master page. I do not think that I had this problem with older versions although I skipped RH9 with this particular project.

Does anybody know a solution or is it only me who is having this problem?

Robert

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
October 10, 2012

I just inserted a reference to a JS file in the header of a master page in Rh9 and it is not getting stripped.

I upgraded the project to Rh10 and it is still good.

It was a simple test just adding

<script type="text/javascript" language="JavaScript" src="filename.js"></script>


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
October 11, 2012

Peter, thanks for testing. You mean the scrip reference also is still

present in your Webhelp or HTML help output files?

I should have mentioned I mean that the scrip reference is getting

removen in the output process (but is still present in the htt template

file).

Robert

Peter Grainge
Community Expert
Community Expert
October 11, 2012

This is strange. The script (in this case "header.js") is added as baggage file and it is present in the output. When I insert the reference in my template like this (regardless of which position within the header it was placed)..

..then Robohelp adds a lot if its own scripts in the webhelp output, but no trace remains of my own script.

In the HTML help output Robohelp adds less of its own code but my reference is still missing.

I guess I will try out creating a new project from scratch. Maybe something is corrupted here..


Sorry, my error. It does appear that Rh10 is stripping the script reference, or to be exact the file referenced.

<script type="text/javascript" language="JavaScript"> is what is in the output

<script type="text/javascript" language="JavaScript" src="filename.js"></script> is what should be there.

Please report this as a bug. I will notify Adobe as well.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.