Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I just generated WebHelp and the script was still referenced in the output.
Is the target file getting uploaded? Wondering if the script gets stripped if the file is not part of the output.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
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..
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Test the same script in a topic rather than the master page.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Hi,
Try adding the script to the header/footer of the master page instead of the head section of the master page. I know that works in all RoboHelp versions, including 10.
Greet,
Willam
Copy link to clipboard
Copied
Hi Willam,
yes everything that is placed within the body seems to remain in the
output. So my next chore will be to change all the templates (there are
quite many).
Also I noticed that RoboHelp removes any additional attributes that I
add to the body element in the template. E.g.,
becomes.
This means we will have to change everything anyway and perhaps move
some functionality into the CSS. Darn why can't they keep their fringers
from changing their scripts. Just recently you already dug up a new
solution for the "Always show navigation pan" problem in WebHelp because
they changed that too in RH10.
Thanks for your hints lads!
Copy link to clipboard
Copied
I am advised that in the scenario when master page containing script tag in its head section is applied to a topic at the time of topic creation, it will work as required.
However, if master page is applied to the topic after topic is created (by modifying topic properties or through SSL properties), patching of the <head> section of master page in topic is not done.
See www.grainge.org for RoboHelp and Authoring tips