views:

141

answers:

7

For example, writting server-side things using javascript, instend of php.

+2  A: 

There is Server-side JavaScript

Anthony Forloney
+2  A: 

Yup, there are several interpreters:

Server-Side Javascript uses on Wikipedia

Don't know which one/s are the most popular, available, and stable, though.

Pekka
+1  A: 

One popular implementation: http://www.mozilla.org/rhino/

+3  A: 

Aptana Jaxer is very neat. You can even manipulate the DOM, and call server-side JS functions from the client.

Lucas Jones
This seems the best one
M28
It does let you do insanely cool things. :)
Lucas Jones
Yeah, I am using it right now, It is impressive :O
M28
Wikipedia says it is dead, how is that possible? It's so amazing.
M28
I noticed that too, but it seems far from dead to me. Am I missing something?
Lucas Jones
Aptana has stopped development on it. I think they have made an official announcement about it, too, but I'm not sure. To be honest, it didn't really catch much interest.
musicfreak
@musicfreak: I suppose. It's a shame though, it was a nice product - really had the potential to speed up web development.
Lucas Jones
+5  A: 

You have a few options if you want to run JavaScript on the server-side:

  • Helma: a Java web server that uses JavaScript for scripting. It uses the Jetty web server and the Rhino JavaScript interpreter. This is probably the most popular and mature product aside from Jaxer.
  • Aptana Jaxer: a really cool solution that allows you to embed server-side JavaScript into normal HTML pages. You can use it just like you would on the client-side: for example, you can use the DOM to manipulate your pages dynamically.
  • Myna: yet another Java-powered web server that uses JavaScript for scripting. It looks easier to use than Helma, but it's relatively new, so I don't know how reliable it is.
  • Phobos: a web application framework that uses JavaScript for scripting. I don't know how mature it is compared to other solutions, though.
musicfreak
A: 

Checkout http://commonjs.org/

-- MV

mvalente
+2  A: 

Check out node.js (http://nodejs.org/). Server-side javascript with asynchronous stuff. Very neat.

malvim