简体   繁体   English

从javascript调用applet方法

[英]call applet method from javascript

i want to call a method startApp() ,located in the java applet file from a java script file. 我想从Java脚本文件中调用位于Java applet文件中的方法startApp()。

i tried the following method 我尝试了以下方法

   <APPLET  name="drops" code="BigDrops.class" width=700 height=650 ></APPLET>

document.drops.startApp(); document.drops.startApp();

but it shows "has no method startApp()" when i looked in the console of the browser 但是当我在浏览器的控制台中查看时,它显示“没有方法startApp()”

But the strange fact i noticed is that this problem is occured in all computers except mine..the files are loaded in the dropbox. 但是我注意到的一个奇怪的事实是,除我的以外,所有计算机中都发生了此问题。文件已加载到保管箱中。 When i run the applet using the dropbox url from my computer, it works fine tell me why it does not work and also give the solution 当我使用计算机上的dropbox网址运行applet时,它工作正常,告诉我为什么它不起作用,并给出了解决方案

7u217u25的某些安全级别下,来自JavaScript的LiveConnect调用受到限制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM