Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adding a property to the global scope

2 views
Skip to first unread message

Ed Silky

unread,
Oct 3, 2008, 7:34:43 PM10/3/08
to dev-tech-js-...@lists.mozilla.org
I have found a lot of examples and have successfully added functions to
the global scope. What I need to find is an example of adding a
property to the global scope that will call into my Java class method
when it is accessed.

I want this so my Java class can provide a bridge between two scripting
environments. For instance, in script environment A there may be a
property defined call 'foo'. From script environment B I want script
code to be able to access 'foo' like other.foo where 'other' is the
bridge property on the global scope that my Java class provides.

Thanks in advance.

Ed Silky

0 new messages