Hanging script in Firefox

Hanging script in Firefox

Postby Yerushalmi on Wed Dec 27, 2017 6:06 am

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?
Yerushalmi
Jr. Propeller Head
 
Posts: 1
Joined: Sun Dec 24, 2017 8:53 am

Re: Hanging script in Firefox

Postby SKamprowski on Wed Jan 10, 2018 3:29 am

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.
Kind regards,
Sabine Kamprowski
DocToHelp MVP (by ComponentOne)
SKamprowski
Sr. Propeller Head
 
Posts: 252
Joined: Fri Feb 13, 2015 8:25 am
Location: Germany


Return to Doc-To-Help Output

Who is online

Users browsing this forum: No registered users and 0 guests