JavaScript calls Applet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yunfeng_bai
Posted On:   Saturday, January 11, 2003 01:39 AM

function callApplet() { document.RepositoryTree.func(); } ]]>]]> I'm using the following codes to enable JavaScript calls my Applet: document.myApplet.func(); myApplet is my JApplet and func is its public method. why don't the above code work in the IE ? My applet now is writen in swing, and it can work fine in a IE with JRE1.3.1. The following codes is my html codes: Repository Tree WIDTH = 250 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_3_1_06-win.cab#Version=1,3,1,6">    More>>

I'm using the following codes to enable JavaScript calls my Applet:
document.myApplet.func();
myApplet is my JApplet and func is its public method. why don't the above code work in the IE ?
My applet now is writen in swing, and it can work fine in a IE with JRE1.3.1.

The following codes is my html codes:





Repository Tree







WIDTH = 250 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_3_1_06-win.cab#Version=1,3,1,6">



















   <<Less

Re: JavaScript calls Applet

Posted By:   Hans_Wichman  
Posted On:   Tuesday, March 25, 2003 02:10 AM

you should set scriptable to true instead of false.
regards... sorv
About | Sitemap | Contact