Skip to main content
Inspiring
May 7, 2015
Question

Customized whthost.js - not working as expected

  • May 7, 2015
  • 3 replies
  • 1513 views

Hi,

I've used a customized whthost.js file for a couple years now with no issues.  Lately, it seems that clicking on a TOC entry does NOT expand it.  Clicking once on a topic in the TOC will display the content in the reading pane, clicking twice on it will (sometimes) expand the TOC.  Subsequent selections in the TOC seem to sporadically expand the TOC entries and then not expand the TOC entries.  I can't figure out why it's not working consistently & correctly.

I've customized whthost.js using William's awesomely helpful information here:  Make WebHelp TOC Wrap | WvanWeelden.eu‌, including wrapping the TOC around the images.

For fun, I've reapplied the customizations in a newly generated whthost.js thinking there's been an extra space or something in my customized file that I've overlooked and is now causing a problem. No luck.  This happens whether I'm viewing the docs in Chrome or IE, locally.  It doesn't discriminate

I've also customized  the spacing between each level of the TOC.

These are the only customizations in that file.

This problem does not occur on output files, which do not contain the customized file.  Once I copy/paste this file into my published files (or into my output file, the error occurs.

I also apply customized whtbar.js, whskin_banner.htm, whskin_mbars.htm, whskin_tbars.htm files.  But, I believe the TOC issue is in the whthost.js file.

Anyone else have this problem?

thanks!

RH 11.0.4.291,Webhelp

IE 10.0.9

Chrome 42.0.2311.135 m

This topic has been closed for replies.

3 replies

Inspiring
August 26, 2015

Hi,

Still not resolved.  I'm really at a loss here.

The issue where the TOC doesn't expand as expected, and/or only expands after clicking 2-3 other expandable TOC headings, only occurs on published files when I apply the whthost.js customized files. Output files, without the customized whthost.js files work great.

Isn't there a way to wrap the TOC without having to apply a customized file yet?  I really am going to have to release this version WITHOUT wrapping because it's the only way these files work.  It looks terrible unwrapped, honestly and adds another scroll bar!

thanks!


Known Participant
July 29, 2015

Using RH10 and I'm having the same problem, seemingly out of the blue. This is happening to me in IE8, Chrome (latest), and Firefox (latest).

I downloaded all of the recent patches that corrected the problem with WebHelp in IE10/11 Chrome and Firefox, and things were working fine until recently. Now when I create a new WebHelp output from any of my projects, the TOC entries do not expand until I click other entries 2 or 3 times.

I have NOT modified whthost.js, for the record (unless there is some way it gets customized by me doing something with the project).

Also not using DUCC.

Clients are frustrated over this. Hope Adobe can address this.

Willam van Weelden
Inspiring
July 30, 2015

In your case, the problem would have a different cause. Can you share an example output that exhibits this issue? I would like to take a look. Please contact me at contact [at] wvanweelden [dot] eu.

Inspiring
May 12, 2015

Is there any way to auto-wrap the TOC text without hacking the script? 

Inspiring
May 12, 2015

Similarly, if this error also occurs when I click on a link in the content pane - the TOC will not expand to sync with the topic currently being viewed  (if it's during the time when the toc won't expand).  And yes, I do have "sync TOC" option in the SSL file selected.

Willam van Weelden
Inspiring
May 13, 2015

The whthost.js holds the most important scripts for the TOC, but it could be something else as well. Do you get a different result if you run the modified whthost.js but WITHOUT the other modified files? (Just to make sure that this is the issue.)

If you open the developer console (F12) and click a link, do you get any errors on the console tab?

Unfortunately, in WebHelp there is no way to add reflow other than manually modifying the script.