Hi,

I have an applet with the Batik viewer. This viewer uses Rhino engine
for parsing the JavaScript.
I am doing a window.showModalDialog (by getting a handle to the window
from the applet) from inside the SVG's script and passing an object I
create inside the SVG's script.

The modal window tries to access a property of the object and call a
method.

Accessing the property works fine.
scrObj.getProperty(scrObj, "objectProperty");

But, even calling the method by passing an empty object (or null)
    srcObj.callMethod(scrObj, "objectMethod", new Object[0]);

doesn't work. Is there something else I should be doing?

2. I also wanted to know about creating Java objects in Javascript
because a lot of methods expect a Context to be passed. I don't know
how to get hold of one.

http://jsourcery.com/api/mozilla.org/rhino/1.6-r5/org/mozilla/javascript/ScriptableObject.html


Thanks,
Praveen
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to