Discussion:
Java Error in Help File
(too old to reply)
Bob
2003-11-04 20:12:38 UTC
Permalink
I've posted this in several places over the past couple of months and
no one has been able to answer it. The problem is the Table of
Contents in a Help file that is generated with RoboHELP for Microsoft
HTML Help Version 9. The resulting help file works fine from Internet
Explorer but users with Netscape 7.X get the following error.

A click or two on the Table of Contents always generates a "JavaScript
Application" popup warning that says:
"The applet did not load properly. Your current Netscape
profile needs to be modified. Select 'Remember this decision'
and click 'Grant' when prompted to allow modifications.
Click OK to proceed."

Clicking OK then makes the Table of Contents disappear. Nothing else
happens. The same happens for the Index and Search tabs.

While the pop-up says Javascript Application Error, Netscape's Java
Console shows:
!!!Applet Resize!!!
!!!Applet Reshape!!!
!!!Applet Resize!!!
!!!Applet Init!!!
!!!Applet Resize!!!
!!!Applet Start!!!
!!!Applet paint!!!
!!!Applet Reshape!!!
!!!Applet Stop!!!
!!!Applet Destroy!!!
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at bssccom.BsscScrollbar.run(BsscScrollbar.java)
at java.lang.Thread.run(Unknown Source)
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at bssccom.BsscScrollbar.run(BsscScrollbar.java)
at java.lang.Thread.run(Unknown Source)

eHelp said they will no longer answer questions on this version of the
software and I need to upgrade.

I added "user_pref("signed.applets.codebase_principal_support",
true);" to the prefs.js file but that didn't solve it.

Any suggestions?

Thanks,
Bob
rhw at lucent dot com
sivakrishna
2014-12-10 07:08:00 UTC
Permalink
i got same problem i paste sample code

we need to change version 4 to 6

var strAgent = navigator.userAgent.toLowerCase();
var strVersion = navigator.appVersion.toLowerCase();

var gnVerMajor = parseInt(strVersion);
var gnVerMinor = parseFloat(strVersion);

var gbNS = ((strAgent.indexOf("mozilla") != -1) && ((strAgent.indexOf('spoofer') == -1) && (strAgent.indexOf('compatible') == -1)));
var gbIE = (strAgent.indexOf("msie") != -1);
var gbOpera = (strAgent.indexOf("opera") != -1);
var gbHotJava = (strVersion.indexOf("hotjava") != -1);
var gbSunOS = (strAgent.indexOf("sunos") != -1);

var gbWin16 = ((strVersion.indexOf("win16") != -1) || (strVersion.indexOf("windows 3.1") != -1));
var gbWindows = ((strAgent.indexOf("win") != -1) || (strAgent.indexOf("16bit") != -1));
var gbMac = (strAgent.indexOf("mac") != -1);
var gbWebTV = (strAgent.indexOf("webtv") != -1);

var gbNS2 = ((gbNS) && (gnVerMajor == 2));
var gbNS3 = ((gbNS) && (gnVerMajor == 3));
var gbNS4 = ((gbNS) && (gnVerMajor >= 6));
var gbIE4 = ((gbIE) && (gnVerMajor >= 4));
var gbIE3 = ((gbIE) && (gnVerMajor <= 3));
var gbIE302before = ((gbIE3) && ((strAgent.indexOf("3.00") != -1)||(strAgent.indexOf("3.0a") != -1)||(strAgent.indexOf("3.0b")!=-1)||(strAgent.indexOf("3.01")!=-1)));
var gbIE302 = ((gbIE3) && (strAgent.indexOf("3.02") != -1));
var gbNS460 = ((gbNS4) && (gnVerMinor == 4.60));

var gbLoading = "unknown";
var gbTryTime = 0;
var gbMaxTryTime = 6;

window.onerror = null;

if (gbNS4 && gbWindows) {
setTimeout("CheckLoadingPhase0()", 1000);
}

var gbPassPhase0 = 0;

function CheckLoadingPhase0()
{
if (!gbPassPhase0) {
setTimeout("CheckLoadingPhase0()", 1000);
document.applets[0];
gbPassPhase0 = 1;
}
else {
CheckLoadingPhase1();
}
}

If you want please contact me on : ***@gmail.co
http://compgroups.net/comp.lang.java.help/

Loading...