Subj : spidermonkey cross script execute doesn't work To : netscape.public.mozilla.jseng From : Mike Moening Date : Wed Mar 16 2005 08:50 am I compile two scripts using JS_CompileScript(). The second script uses a function compiled by the first script. I call JS_ExecuteScript() on the second script and get the error "function is not defined". How can I load multiple scripts into the context and allow one to call functions defined in a different compiled script? Many thanks in advance. .