Skip to main content
November 28, 2011
Answered

An error prevents TOC from being displayed on IE8

  • November 28, 2011
  • 1 reply
  • 2446 views

Hello,

I am using RH 9.0.1 and IE 8.0.7. When I compile a help project in webhelp format, the TOC is not displayed in the output result. A yellow error icon is displayed in the lower left corner of the browser window with the following information:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E)
Timestamp: Fri, 25 Nov 2011 16:32:35 UTC


Message: Object expected
Line: 344
Char: 2
Code: 0
URI: file:///C:/Documentation/Help/xxx/xxx/!SSL!/WebHelp/whphost.js


Message: 'this.maCom[...]' is null or not an object
Line: 171
Char: 3
Code: 0
URI: file:///C:/Documentation/Help/xxx/xxx/!SSL!/WebHelp/whphost.js

The same occurs in Google Chrome. Does anybody know how this could be fixed?

Thank you in advance,

Tony

This topic has been closed for replies.
Correct answer Willam van Weelden

Hello William,

The output I generated on the Windows XP machine works correctly both on the XP and on Windows 7 so the problem is just with the projects generated on the Windows 7 machine. I would appreciate it if you could send me a correct whphost.js...or maybe I can use the one on the XP machine?? I hope I won't have to install again if I replace the file.

Thanks

Tony


Hi,

You can try the XP one too. Just make sure both versions of Robo have the exact same version.

The file is located in your RoboHelp install directory, and then RoboHTML\WebHelp5Ext\template_stock

On the Win7 machnine, first make a backup of whphost.js before pasting the new one.

Greet,

Willam

1 reply

Willam van Weelden
Inspiring
November 28, 2011

Hi,

Is only the TOC not working, or is the search, index etc not working either? You WebHelp is placed locally, so it won't work in Chrome. See snippet 130 on Peter's site: http://www.grainge.org/pages/snippets/snippets.htm to view your local help in Chrome.

Are you using Chrome Frame in Internet Explorer? Does your output work in FireFox?

Can you post a screen shot of what is happening? Use the camera icon on the forum to add your image.

Greet,

Willam

November 28, 2011

Hello Wiliam,

Thank you for your reply.

You are right, the search and index are not working either. I knew about the Chrome issue when opened locally. If I follow the instructions on the website you mentioned, the webhelp will show the contents, but not the TOC, and the Index and Search do not work either. The same problem occurs on Firefox 3.6.3. I am not using Chrome Frame in Internet Explorer.

Basically, what I get is a blank TOC, a blank Index and the Search does not work. When I click on the "Error on page" yellow icon I get the error message I posted above. Any suggestions?

I've used RH 7 before and I never had this issue.

Tony