Subj : Calling a function from a different scope under Rhino To : netscape.public.mozilla.jseng From : "Kok Hoor" Date : Mon Dec 01 2003 09:53 am Hi all, One of our customers requires a Java application implementation of our client-side software, instead of our existing web-based implementation. In order to simplify the process and to reuse the scripts we have, I have decided to use Javascript scripting. As I am quite new with Rhino, my implementation technique might be wrong. I am creating a shared scope object that hosts system functions. It is also primarily used to share variables and functions across different windows. Next, for each opened windows, I created a scope for them individually. This way, scripts parsed are not directly accessible from other scopes. My problem is, sometimes we need to access child windows to access their properties and invoke their method. This was ok with Mozilla or Internet Explorer, as I can get a reference to a window I create (var wnd = window.open(...);), and access the variables and the methods as well. This is different in Rhino however, although I can access their variables, invoking a child method runs the method in the caller's scope, not the child scope. Is there any way to implement this? Thanks in advance. Regards, Kok Hoor .