Hanging script in Firefox

Post Reply
Jr. Propeller Head
Posts: 1
Joined: Sun Dec 24, 2017 8:53 am

Hanging script in Firefox

Post by Yerushalmi »

I have DocToHelp 2009, and many of pages use the "collapsed" style feature.

Something went wrong within the last six months, and now any time I open a page that contains a collapsed paragraph in Firefox the browser briefly stops responding, followed by complaining about a hanging JavaScript function.

The function is this one:

function d2ht_StringToStatesArray(str)
var start = 0, end;
var key;
if (str != null && str.length != 0)
while (start < str.length)
end = str.indexOf(":", start);

key = str.substring(start, end);

start = end + 1;
end = str.indexOf("|", start);
if (end == -1)
end = str.length;
gSecStates[key] = str.substring(start, end);
start = end + 1;

This problem does not reproduce in Internet Explorer or in Chrome.

Anybody have any ideas?
Sr. Propeller Head
Posts: 277
Joined: Fri Feb 13, 2015 8:25 am
Location: Germany

Re: Hanging script in Firefox

Post by SKamprowski »


your D2H Version didn't know anything about current Firefox versions. I assume that this is the reason for your issue.
BTW: current D2H does not support the same NetHelp as Version 2009.
Kind regards,
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
Post Reply