Page 1 of 1

Hanging script in Firefox

PostPosted: Wed Dec 27, 2017 6:06 am
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?

Re: Hanging script in Firefox

PostPosted: Wed Jan 10, 2018 3:29 am
by SKamprowski
Hi,

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.