Liveconnect Java Javascript arrays

I'm trying to access an array in an applet using liveconnect from javascript

Here are my applet and script bits from the HTML

<BODY >
<P>
<APPLET CODE="HelloWorld.class" NAME="HelloWorld" WIDTH=150 HEIGHT=25 MAYSCRIPT=1></APPLET>
<P>

<SCRIPT>
var i, sum;
x = document.HelloWorld.myArray;
document.write(x.[0]);
</SCRIPT>

Here is the array in the applet

public String[] myArray = {"one", "two", "three"};


All I get printed out is undefined - shouldn't the Java array be wrapped as a JavaArray by Javascript.  I'm using IE5, but it doesn't work in Netscape either.

Any decent liveconnect links (i.e. not the crappy netscape ones) with decent examples, help etc. would be much appreciated.
LVL 1
yatest5Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
pyxideConnect With a Mentor Commented:
a decent link :
http://www.tactika.com/realhome/realhome.html
click on "interaction with javascript" in the applet menu.
0
 
yatest5Author Commented:
Superb site - it answered my question.

Ta
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.