Subj : Rhino - general method in JS To : netscape.public.mozilla.jseng From : yossib@mercury.co.il (Yossi B) Date : Tue Sep 16 2003 08:20 am I'm looking for a way to call a method from within the JS BUT this method must not be in the JS itself. the JS: ...... root = Packages.com.mercury.topaz.fm.execution.DataCollectorsAPI; SS = root.getSiteScopeInstance(); host = GetMapParam("Host"); ....... where the GetMapParam() is not in the JS. is there a way to announce the method before evaluate the JS using the Context or the Scriptable(scope) ? Or maybe to 'link' between the method to the implementation inside the JS? thanks Yossi. .