Skip to main content

Java-JavaScript bridge: isActive no longer supported ?

2 replies [Last post]
davidnouls
Offline
Joined: 2008-05-05

Hi,

I noticed another issue with update 10 build 22 in IE6:

We are using applets that we invoke from Javascript. Before we actually do the call, we make sure that the applet in fully loaded otherwise we had problems in the past.

This is a copy paste of that code:

function( pElement ) {
return (pElement && pElement.isActive && pElement.isActive());
}

After installing update 10, this function always returns false.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davidnouls
Offline
Joined: 2008-05-05

I found the problem!

Before update 10, all public methods available in an applet were available as a property in JavaScript. This seems to be broken.

document.applets['myapplet'].isActive throws an exception that the member is not defined.
However I can just call document.applets['myapplet'].isActive() and it does not fail.

davidnouls
Offline
Joined: 2008-05-05

Hi,

Even worse, I can no longer call any of the public methods I declared in the applet.
Is the Java-JavaScript functioning in IE6/WindowsXP ?

David