Causiously replying at possibility of getting rappped on knuckles again
with the metal yard stick!

LiveConnect is broken at this time.

LiveConnect was a Proprietary technology specific to netscape only.

Netscape is supposed to have given the code to W3C Committee. 
Its uncertain whether the code will be accepted.

There is supposed to be a minor tweak adding a few line of extra code so
that it will envoke Normal Java commands and not Netscape Specific 
(Proprietary)commands.

As currently written any thing that use it will fall silent (do
nothing). 

[EMAIL PROTECTED] wrote:
> 
> Hi Everyone,
> 
> I had the following code that worked in IE 5.x and NS 4.x but NS 6.  Does anyone 
>have a workaround for NS LiveConnect?
> 
> import java.awt.*;
> import javax.swing.*;
> import netscape.javascript.JSObject;
> 
> public class Applet1 extends JApplet
> {
>      JSObject obj;
>     public void init(){
>        try {
>            obj = JSObject.getWindow(this);
>        } catch (Exception e) {}
> 
>        foo f = new foo();
>        f.value = true;
>        Object o[] = {f};
>        obj.call("testing", o);
>    }
> 
>     class foo {
>        public boolean value;
>        public foo() {
>            value = false;
>       }
>    }
> }
> 
> <HTML>
> <HEAD>
>         <SCRIPT language="javascript">
>         function testing(obj)
>         {
>            if (obj.value) {  // Failed right here.  I got an IllegalAccessException
>                alert("true");
>           } else {
>               alert("false");
>         }
>         </SCRIPT>
> </HEAD>
> <BODY>
>         <applet
>                 code=Applet1.class
>                 name=Applet1
>                 width=320
>                 height=200 mayscript>
>         </applet>
> 
> </BODY>
> </HTML>
> 
> This is the exception that I got:
> ava.security.PrivilegedActionException: java.lang.IllegalAccessException
> at java.lang.reflect.Field.get(Native Method)
> at sun.plugin.liveconnect.PrivilegedGetFieldAction.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.plugin.liveconnect.SecureInvocation.GetField(Unknown Source)
> Thank you in advance.
> [EMAIL PROTECTED]
> -Quoc
> 
> 
> --
> Sent  by  qnguyen from kofax  part from  com
> This is a spam protected message. Please answer with reference header.
> Posted via http://www.usenet-replayer.com/cgi/content/new

-- 
--------------------------------------------------------------------------
Phillip M. Jones, CET     |MEMBER:VPEA (LIFE) ETA-I, NESDA,ISCET, Sterling
616 Liberty Street        |Who's Who. PHONE:540-632-5045, FAX:540-632-0868
Martinsville Va 24112-1809|[EMAIL PROTECTED], ICQ11269732, AIM pjonescet
--------------------------------------------------------------------------

If it's "fixed", don't "break it"!

Reply via email to