Copy link to clipboard
Copied
Hi all,
I inserted some drop-down hotspots on my topics then generate to chm file.
When I clicked that topic, I received an Internet Explorer Script Error dialog with content:
An error has occured in the script on this page.
Line:...
Char: ...
Error: Object expected.
This error doesnot occur anymore if I remove the drop-down hotspot.
Anyone has this experience. Please help me. Thanks.
Copy link to clipboard
Copied
Hi,
Before we can help you, could you please provide some more information?
- What version of RoboHelp are you using?
- What kind of contents did you put in the dropdowns?
- Did you nest the dropdown?
- What is the error you are receiving? (line number)
Greet,
Willam
Copy link to clipboard
Copied
I already mention the version of robohelp and kind of the contents I am using at the title of this post that I used RoboHelp HTML 9 and generate the help project to .chm file.
The following is the error message:
Copy link to clipboard
Copied
Check out this link.
Copy link to clipboard
Copied
Dear RoboColum(n)
I already did as your link(download a newest version of hhctrl.ocx then paste to the current file in my system32 folder) but it does not help.
Copy link to clipboard
Copied
Did you register the file as well as outlined in that link? If so, try this:
1) Use MJ’s Help Diagnostics to ensure that all the help viewer components are properly installed and registered.
http://helpware.net/downloads/index.htm
2) Delete the file “hh.dat”, which you should find in this subdirectory:
\Documents and Settings\%username%\Application Data\Microsoft\HTML Help
This file stores information about all the HTML Help files on your system (Favorites, window size and position, etc.), and can cause the files to misbehave if it has somehow been corrupted.
Copy link to clipboard
Copied
Dear RoboColum(n),
I cannot file the hh.dat file in your path, Please check it again. Thanks.
Copy link to clipboard
Copied
Perform a search for the file. You'll find it. The path given depends on the version of Windows you are using.
Copy link to clipboard
Copied
Dear RoboColumn, my problem is not fixed yet. Do you have any idea ?
Copy link to clipboard
Copied
I already detect the reason I got error script message when previewing the topic.
The reason is I used dropdown text in the topic and associated the topic with a master page which contain mini TOC. This mini TOC generates links that taken from heading 2, and heading 2 in the topic.
Those two things automatically generate the same code in bold as the following:
<?rh-script_start ?><script type="text/javascript" language="JavaScript1.2">//<![CDATA[
if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
TextPopupInit('a2', 'POPUP387000003');
TextPopupInit('a3', 'POPUP390143172');
TextPopupInit('a4', 'POPUP388598245');
TextPopupInit('a5', 'POPUP388775606');
TextPopupInit('a6', 'POPUP393895266');
TextPopupInit('a9_1_1', 'POPUP378712997_1_1');
TextPopupInit('a10_1_1', 'POPUP380848196_1_1');
TextPopupInit('a1_1_1', 'POPUP374357032_1');
TextPopupInit('a7', 'POPUP374634392');
//]]></script><?rh-script_end ?>
and
<?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"
language="JavaScript1.2"></script><?rh-script_end ?>
I removed the second code line in bold italic above and then generate the project, preview the topic and see it works well without any error.
But the next time I open this topic to edit something and then generate the project, the second code line in bold italic above appears again in HTML view mode and make error script message, of course.
Don't know how to solve this problem.
Please help me. Thanks.
Copy link to clipboard
Copied
Try making the change again but saving the topic whilst inside the HTML view. There have been occasions where edits to the code have not stuck unless you follow this procedure.
Copy link to clipboard
Copied
Dear RoboColum(n),
Even I made changes then saved the topic in HTML view, It means that I still have to remove this code line whenever I generate .chm file.
Copy link to clipboard
Copied
Hi,
As a small clarification: The ehlpdhtm.js file is required to make DHTML effects (such as the miniTOC) work. If you delete it from the topic, RoboHelp will always insert it again when you open the topic in WYSIWYG view.
Greet,
Willam
Copy link to clipboard
Copied
Hi William,
You're right, whenever I open this topic in WYSIWYG view, this code line is generated automatically. While I have many topics in the project using DHTML effects and I cannot remove this extra code line for those topics whenever I generate the project to .chm file. So what should I do to solve this problem?
Copy link to clipboard
Copied
The only way out is looking in the script to see what is amiss. Removing ehlpdhtm.js will break all DHTML effects, including the minitoc.
Is elpdhtm.js somehow attached as a baggage file to your project? Perhaps an old version still persists in your project.
Greet,
Willam