Runtime error in CHM from import

This forum is for all Flare issues related to importing files or projects.
Post Reply
RobinS
Propeller Head
Posts: 33
Joined: Mon Oct 22, 2012 6:27 am
Location: Scotland, UK

Runtime error in CHM from import

Post by RobinS »

I'm new to Flare (but not to Help tools and compilers) and I'm using version 7.2.1 (on Windows 7).
Yesterday I created a new project from an imported CHM (previously created via RoboHelp - I only have access to the output, not the sources).
This compiled and ran fine. Today I have imported three more CHMs and merged the htm and graphic files into the same project.
This appears to compile OK, but when I try to open any TOC book or topic (from Search), I get an error message "The value of the property 'BSSCOnLoad' is null or undefined, not a Function object" (see attached). This affects all content, not just the newly added material.
Following advice elsewhere on this forum I have removed any BSSCDHTM.js files from the project, with no impact.
Webhelp output compiles and runs fine.
Any advice, anyone?
You do not have the required permissions to view the files attached to this post.
RobinS
Propeller Head
Posts: 33
Joined: Mon Oct 22, 2012 6:27 am
Location: Scotland, UK

Re: Runtime error in CHM from import

Post by RobinS »

I have fixed this by removing the following line from the source in every topic:
<body onload="BSSCOnLoad();" onclick="BSSCOnClick();" onunload="BSSCOnUnload();">
I assume this is a RoboHelp hangover. Please let me know if this is likely to have broken anything!
Anything else I should strip out after import?
This line, also in the <head> for instance?
<script language="javascript" title="BSSC Special Effects">/*<![CDATA[*/
RobinS
Propeller Head
Posts: 33
Joined: Mon Oct 22, 2012 6:27 am
Location: Scotland, UK

Re: Runtime error in CHM from import

Post by RobinS »

That is, I reduced the offending line to a plain "<body>" tag.
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Runtime error in CHM from import

Post by wclass »

Sorry for the late reply.

I'll confirm that what you did is correct and it will have no impact.
It has been a while since I converted RH files, but this was a known issue. The BSSConload function was stored in a file called something like ehlp??.js, and that is not required in Flare, so when you remove it you end up with the error. From memory, the BSSC stuff was related to context sensitive help, which you would have to change moving to Flare anyway.

So yes, just clear the references out of the Body tag and anywhere else, and you will be OK.
Margaret Hassall - Melbourne
Post Reply