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

Patrick Steele <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
On Thu, Nov 6, 2008 at 7:55 AM, Brady Kelly <[email protected]> wrote:
>> You could use the Microsoft Script Control via COM-interop.
>>
>> --
>> Patrick Steele
>
> Would it handle standard JavaScript properly?  How would I get the results
> back?

I believe it supports both VBScript and JavaScript.  I used it many,
many years ago in VBScript mode.  You basically pass it object
references along with the name that object can be reference by in your
script.  Send it the script code and have it execute.  Any method
calls or property access will be done directly on your .NET object

-- 
Patrick Steele
http://weblogs.asp.net/psteele

===================================
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.