Subj : Re: Asynchronous script execution To : Michael Putters From : Brendan Eich Date : Wed Nov 19 2003 01:56 pm Michael Putters wrote: >Hello, > >I've just started embedding SpiderMonkey within my application, and so far, >it's great, but I'm wondering how I could do the following : > >function example() >{ > Windows.MessageBox( 'hello world' ); >} > >Application.onStartup = example; > >The part about calling the message box or calling the event is not a >problem. However, I use JS_ExecuteScript. So I cannot, like.. execute it, >THEN call onStartup from the host application. How could I do that? Not sure >I'm being clear.. > > See JS_CallFunctionName and related APIs. /be .