D
Daniel Pitts
Is there a way to pass actual JSObject from JavaScript into an Applet?
I'm attempting something like:
documents.applets[0].myMethod({
foo: 'bar',
baz: function(arg) {
alert(arg);
}
);
I thought it would work. applets[0] has mayscript enabled, etc...
public class MyApplet extends JApplet {
public void myMethod(JSObject obj) {
System.out.println(obj.getMember("foo")}; // prints null.
obj.call("baz", new Object[] {"Joe Bob"}); //does nada.
}
}
Is what I'm trying to do possible? I'd rather not pass in Strings if
possible, I'd like to pass in actual JSObjects.
Thanks,
Daniel.
I'm attempting something like:
documents.applets[0].myMethod({
foo: 'bar',
baz: function(arg) {
alert(arg);
}
);
I thought it would work. applets[0] has mayscript enabled, etc...
public class MyApplet extends JApplet {
public void myMethod(JSObject obj) {
System.out.println(obj.getMember("foo")}; // prints null.
obj.call("baz", new Object[] {"Joe Bob"}); //does nada.
}
}
Is what I'm trying to do possible? I'd rather not pass in Strings if
possible, I'd like to pass in actual JSObjects.
Thanks,
Daniel.