JavaScript scripting engine suggestion

T

Tomas

Hi,

I am searching for component which could execute JavaScript(not
JavaScript.NET) in .NET application.
For example I have JS below, I need to pass MyData variable from .NET
application, execute JS and read Answer value. Is it possible?

function myCon(MyData) {

Answer:= MyData+1;

}

Regards,
Tomas
 
A

Alun Harford

Tomas said:
Hi,

I am searching for component which could execute JavaScript(not
JavaScript.NET) in .NET application.
For example I have JS below, I need to pass MyData variable from .NET
application, execute JS and read Answer value. Is it possible?

(Surely you'd just want to execute the function and get the result?)
function myCon(MyData) {

Answer:= MyData+1;

}

If you could write your .NET app for silverlight, you can interact with
javascript (and the DOM) pretty easily.

If you can't write your app for silverlight, I don't know of an easy way
to do this in the general case. In the past, I've often considered
writing a wrapper for SpiderMonkey (which wouldn't be too hard), but I
never got around to it and I'm not working with Javascript these days.

Alun Harford
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top