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)
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.
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.
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.
I cannot file the hh.dat file in your path, Please check it again. Thanks.
Perform a search for the file. You'll find it. The path given depends on the version of Windows you are using.
Dear RoboColumn, my problem is not fixed yet. Do you have any idea ?
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:
if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
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.
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.
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.
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?
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.
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.