Possible Duplicate:
parse and execute JS by C#
I'm trying to implement a new functionality in my application.
The idea is to have a string in the application which is passed to a javascript script and then getting back.
For example :
string str = "foo";
str = RUN_JAVASCRIPT(str);
Console.WriteLine(str);
RUN_JAVASCRIPT call a .js file, passing str as argument and retrieve the updated string as result.
Jint do the work well but i need to not use external dll. I'm trying to use WScript but i haven't found a way to get the value back.
Any ideas ?