Hello, I have an applet named API and the code that calls it, in a JSP, is :
<applet code="API" archive="lms.ja r" height="0" width="0" >If you see this
message, your browser cannot run Applet LMS.</applet>
The page has also a JavaScript code that looks as:
function findAPI(win)
{
while ((win.API == null) && (win.parent != null) && (win.parent != win))
{
findAPITries++;
// Note: 7 is an arbitrary number, but should be more than sufficient
if (findAPITries 7)
{
alert("Error finding API -- too deeply nested.");
return null;
}
win = win.parent;
}
return win.API;
}
From Java console I see the applet loaded and inited, but the function above
returns "null". It seems that the applet is loaded but the Javascript cannot
see it.
Can you help me?
The environment is: Tomcat, Java, Eclipse, Windows/Linux.
Thank you.