I've gotten a bit further, by using nsIScriptContext::EvaluateString.  I can 
now execute some script.  However, most script is giving me the exception: 
Unexpected error arg 1 (or 0).  There is no argument 1 (or 0), neither in 
the call, nor in the method signature.  The calls are on interfaces and 
components we've created, which worked with FF2.  Any help with this error 
message would be appreciated.

"Phil McLachlan" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> We have applications that embed Spidermonkey, so some of our components 
> can be scripted.  One of our applications is a Mozilla NP plugin, so we 
> cannot have any link-time dependencies on Spidermonkey.  In FF2, we 
> achieved this by creating our own nsWebBrowser component, which we get the 
> document via the nsIWebNavigation interface.  To execute script, we add an 
> HTML element to the document with a type of "text/javascript".
>
> Unfortunately, the script doesn't run when upgrading to FF3.  Is there any 
> new special functions or methods I need to call to get JS working in FF3? 
> I can post some code, if needed.


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to