JavaScript scripting engine suggestion

  • Thread starter Thread starter Tomas
  • Start date Start date
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
 
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
 
Back
Top