Re: Execute a JavaScript function in a C# application.

John Brett <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
> Would it handle standard JavaScript properly?

It would execute the same JavaScript engine that IE uses. One can
argue about whether that's standard JavaScript, but I suspect it's
what you want.
Bear in mind however that if your script tries to use any of the
framework that IE will put in place around the script, then you're
going to have to deal with that. All doable, but work.

>  How would I get the results back?

You can get access to the JavaScript as a COM object, so you can
execute methods and variables - depends how your answers are presented
from JavaScript.

John

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.