Calling Applet method

wxdqz

New Member
Hi,

Have a problem, I want to call a class method in an Applet.

html extract...

<form id="myForm">
<OBJECT id="myappletid">
<PARAM name="code" value=http://www.webdeveloper.com/forum/archive/index.php/"myApplet.class">
</OBJECT>
</form>

My javascript is like this but it doesnt make the call

a) document.myForm.myappletid.myMethod();
b) document.myForm.myappletid.myApplet.myMethod();

Firstly I tried (a) but that failed (src: <!-- m --><a class="postlink" href="http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/js_java.html">http://java.sun.com/j2se/1.4.1/docs/gui ... _java.html</a><!-- m -->). Then I tried (b) but neither work.

All the paths and names are correct.

Help!
 
Back
Top