Copy link to clipboard
Copied
At times we get the following error when trying to access Multiscreen HTML topics. Does anyone know how to get rid of this error?
Copy link to clipboard
Copied
When does this happen? At random? On specific topics? Only after specific generation runs?
This error suggests that there is a JavaScript error in one of the files that blocks the loading of all required files, thus resulting in this error because the resource holding the required function is not loaded.
Do any of your topics contain custom scripting?
Greet,
Willam
Copy link to clipboard
Copied
Hi William,
Thank you for your response.
The error seemed to occur immediately after clearing the cache and only when we clicked on an item in our table of contents. It seems to have happened fairly randomly although we can seem to reproduce it consistently on topics that contain a lot of content. I do not believe that we have any custom scripting in any of our topics.
After our developer took a look at this, they made a fix to one of the robohelp files that seems to have resolved the issue. I am posting it here to help others that encounter this error and also hopefully someone at RoboHelp sees this and takes a look at the issue.
File: C:\Program Files (x86)\Adobe\Adobe RoboHelp 10\RoboHTML\MultiscreenExt\widgets\common\scripts\XmlJsReader.js
The onScriptLoaded callback method is called even in case of error (see method loadScript).
We added “&& xmlDoc” so the xmlInfo callback is not called when the xmlDoc object is null.
this.onScriptLoaded = function () {
…
if (xmlInfo.callback && xmlDoc)
xmlInfo.callback(xmlDoc, xmlInfo.cbargs);
Copy link to clipboard
Copied
Thank you for posting this solution!
Greet,
Willam