[Greasemonkey] GM & JavaScript/Applet Interaction
Lenny Domnitser
ldrhcp at gmail.com
Sat Oct 14 19:37:37 PDT 2006
The problem is on this line:
applet.foo();
foo is a custom property, as described by Pitfall #4 in
http://www.oreillynet.com/lpt/a/6257 .
This ugly hack should work:
function callApplet() {
location.href = "javascript:(function(){
document.getElementById('TestApplet').foo(); })();";
}
The linked article explains the security reasons for this.
More information about the Greasemonkey
mailing list