views:

45

answers:

2

I want to embed Javascript in my own application. I know I can do this with all the open source Javascript engines like V8, TraceMonkey/SpiderMonkey. But, scanning through the source code learning how to embed them is not easy given most are not well documented. Is there anything native in Windows? Is the JScript engine already been exposed to user (perhaps through COM)? Would the JScript engine in IE9 (the one with compilation capability) be available for embedding by desktop appli?

A: 

For some languages there are embeddable javascript engines available, that are specifically designed to be used as scripting engines or stand-alone interpreters. Most popular one is probably Rhino for Java. But for .Net there is also Jint

haffax
A: 

You can embed the MS-supplied script engines, including JScript and VBScript using the Script Interfaces. But it doesn't look like they're better documented than the open source options.

Amnon