开发者

liveconnect on ubuntu/firefox

开发者 https://www.devze.com 2023-03-13 22:12 出处:网络
This works on chrome canary/firefox 4 etc on windows: getAppletContext().showDocument(new URL(\"javascript:alert(\'hello\');\"));

This works on chrome canary/firefox 4 etc on windows:

getAppletContext().showDocument(new URL("javascript:alert('hello');"));

but on firefox 4 ubuntu it does nothing but throw java.net.MalformedURLException: unknown protocol: javascript

It does not throw this exception on Windows.

Any ideas on how to make this work? Even ignoring the excepti开发者_如何学Pythonon using the first answer from Calling JS from Applet: MalformedURLException: unknown protocol: javascript the javascript does not run


The solution was to remove the iceatea java plug-in package, and install sun-java6-jre and sun-java6-plugin from canonical partners repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号