Script error occurs when navigating between CHM files

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
Jim
Propeller Head
Posts: 18
Joined: Thu Jul 19, 2012 2:56 pm

Script error occurs when navigating between CHM files

Post by Jim »

Hello all!

We're _almost_ done with converting our files to MadCap, but have come across a little hiccup that I hope someone can help us with.

We have merged multiple Flare projects into a single parent CHM file. In some cases, there are links in the child CHM files that point to a page in the parent. These links are set up as follows:

Code: Select all

<a href="ms-its:Parent.chm::HTMLPage.htm">Link Text</a>
We build the parent project (which in turn, builds the child projects), and everything looks good. UNTIL we click on the link. Then we receive a script error "Unable to get value of the property 'getElementsByTagName': object is null or undefined." The URL points to Output\HTML Help\Parent.chm::/SkinSupport/MadCapBody.js.

Has anyone seen this issue? Obviously, script errors in the final output are not desirable! :) Any help would be greatly appreciated!
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Re: Script error occurs when navigating between CHM files

Post by Psider »

I think the code is missing a /

ms-its:Parent.chm::/HTMLPage.htm

I don't know that will fix the error, but worth a try. :)
Jim
Propeller Head
Posts: 18
Joined: Thu Jul 19, 2012 2:56 pm

Re: Script error occurs when navigating between CHM files

Post by Jim »

Psider wrote:I think the code is missing a /

ms-its:Parent.chm::/HTMLPage.htm
That fixed our issue...thank you!
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Re: Script error occurs when navigating between CHM files

Post by Psider »

No problems. I always try to check inconsequential symbols, remembering the hours my dad spent debugging games typed out of the old Apple magazines - days spent trying to find misplaced commas. :p
Post Reply