views:

898

answers:

8

I'm looking for an open source javascript engine for .NET. Thanks.

+1  A: 

What do you mean 'engine for .net'?

Regardless, there is Microsofts AJAX Framework, or jQuery. Microsofts is integrated via controls and so on, but I prefer jQuery.

Noon Silk
He means a JavaScript interpreter that runs on .NET. Like IronPython or IronRuby.
Ionuț G. Stan
Why did he say 'C#' then?
Noon Silk
Probably because the implementations I mentioned are written in C#, AFAIK anyway.
Ionuț G. Stan
Well, I don't really buy it, but anyway, I think we can agree the question isn't worded well :) Hopefully he clarifies.
Noon Silk
i think Alon might mean a .Net-based Javascript language interpreter and renderer. An engine that reads Javascript and executes the commands. Nothing about .Net with a quick Google search but you might consider porting from Java to .Net: http://www.mozilla.org/rhino/
Paul Sasik
+1  A: 

You might want to check out Managed JScript. It sounds like something you are looking for, but I don't really know much about it.

Edit: Sounds like Managed JScript is dead according to another post, so I would look into Google's V8.

You can also use Google's V8 Engine from .NET. Check out this other question, and the provided solution: http://stackoverflow.com/questions/356948. This example uses Managed C++.

mc2thaH
+1  A: 

If your point 'engine' is Javascript Parser,I think MS JScript.NET has the ability to do this,Take a look this article:http://www.odetocode.com/code/80.aspx

guaike
+5  A: 

There was, at one time, a clone of JavaScript that ran on the DLR. But now it's dead.

A quick search turns up RemObjects Script and ECMAScript.NET. Might as well start there...

Shog9
A: 

Here's a recent project I came across: script_sharp, to write JavaScript using the C# language. You write it in C# and it gets turned into JavaScript.

http://weblogs.asp.net/rosherove/archive/2009/08/11/script-script-sharp-solving-the-javascript-overload-problem.aspx

WebDevHobo
Never thought I'd downvote a post about script#... It's an excellent tool (possibly the best thing that has happened to MS web development since ASP.NET, but it does not target the problem the question is about.
erikkallen
+6  A: 

You can chech Jint (http://jint.codeplex.com) which is a Javascript interpreter for .NET

Sébastien Ros
A: 

You can take a look at this project http://javascriptdotnet.codeplex.com/ which look like what you are looking for.

Deacon Frost
+3  A: 

Try Javascript .NET:

http://javascriptdotnet.codeplex.com/

It implements Google V8. You can compile and run Javascript directly from .NET code with it, and supply CLI objects to be used by the Javascript code as well. And V8 is probably the best engine ever created in terms of performance, it generates native code from Javascript.

Jordane Green