Today, I start cross referencing and each cross reference has an error when viewed in the preview mode. The cross reference works fine (no error) when it is compiled (as HTML help) but doesn't work in preview mode (before or after build).
Here is the error: A runtime error has occured. Do you wish to Debug? Line:24. Error:Object expected.
If I reply No, the Preview window then displays the correct topic.
If I reply Yes and launch Microsoft Script Editor, the script debugger, working on file ..\Preview\MadCapBodyEnd.js, displays "Microsoft JScript runtime error: Object Expected."
Code: Select all
function FMCCheckForBookmarkInternal( a )
{
var hrefPrefix = FMCGetHref( document.location );
var href = FMCEscapeHref( a.href );
if ( href.substring( 0, hrefPrefix.length ) != hrefPrefix )
{
return;
Code: Select all
var hrefPrefix = FMCGetHref( document.location );