views:

149

answers:

3

I was wondering if there was some type of library (preferably for .NET) that allows a web page downloaded (for instance, using HttpWebResponse) that can evaluate javascript variables and evaluate and parse javascript procedures.

A: 

It will require some work, but it should be possible to accomplished using ECMAScript.NET.

driis
+2  A: 

Check out Awesomium. .NET + webkit (chrome rendering engine). From the website:

Javascript Integration Execute arbitrary Javascript, invoke C++ callbacks from Javascript, pass arrays, objects, and other types to/from a page, and more!


Sorry, its not specifically WPF. Chris Cavanagh ported it, but you can use awesomium from your .net code.

Will
The website is pretty awesome :D
Rex M
+1  A: 

Jint is an open-source Javascript interpreter for .NET. You can run Javascript code within your application, and exchange object for doing automation for instance.

You can even define a DHTML object model and pass it as an argument if you want to simulate a browser.

Sébastien Ros