Subj : Re: Scoping question To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Wed Jan 14 2004 10:09 am > My first thought was to pass different JSObject* pointers into > JC_EvaluateUCScript, one object for Project, another for Thing 1, and > another for Thing 2. Only then there's no relation between the > 'Thing' objects and the object used when the Project script was > defined - so I don't think any of the Project functions and properties > will be visible. Although I can't verify this right now, I believe that if you predefine the objects via JS_DefineObject at global scope then you can access them as global variables (ie no scope identifier), even when passing a different scope object to JS_EvaluateUCScript. IINM, the object passed to the _Evaluate API doesn't exclude others, it is merely the default scope. Sterling .