471,327 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,327 software developers and data experts.

would like to interpret the JavaScript code in c#.

Hi,
I would like to interpret the JavaScript code in c#.
I have some methods in JavaScript; is it possible to execute those
methods which return a result programmatically.

Example
String strJava=’var test; test = 999; return test;’ ;
String Res = Exec.JavaScript(strJava);
Console.Write(Res);
*** Sent via Developersdex http://www.developersdex.com ***
Feb 1 '06 #1
1 1632
You could convert this:

http://www.mozilla.org/rhino/

else I'd scour codeproject.com as there is an article there about
interpretting code via the CodeDom namespace (iirc)

Feb 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by kaiwing18 | last post: by
9 posts views Thread by franzkowiak | last post: by
3 posts views Thread by Alexander Fillips | last post: by
4 posts views Thread by Hype | last post: by
4 posts views Thread by victor.zou | last post: by
2 posts views Thread by hup | last post: by
1 post views Thread by Twayne | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.