views:

117

answers:

4

what is server-side javascript ? can it replace php with server-side javascript? if it exists do extjs has serverside javascript ?

+2  A: 

ASP Classic and .NET both support JScript as a server-side language. There is also the Helma framework which uses JavaScript for scripting, but itself is Java-based.

thomask
+2  A: 

what is server-side javascript ?

Program code running on a server that happens to be written in JS.

can it replace php with server-side javascript?

Yes

if it exists do extjs has serverside javascript ?

ExtJS is a UI library, it doesn't do anything that would be all that useful server side.

You might be able to get some use out of it (little bits of it) in a similar fashion to this approach used to use YUI on the server: http://www.yuiblog.com/blog/2010/04/05/running-yui-3-server-side-with-node-js/

David Dorward
ExtJS (or any other DOM UI library) could be useful with a server-side JS implementation which includes a DOM, like Jaxer (whose last release did actually target properly supporting jQuery and Prototype). Unfortunately Jaxer has died on the vine, and other server-side JS implementations have not taken up the DOM as an integral API.
eyelidlessness
+1  A: 

As I know, the so called "Server-side Javascript" relies on the server technology.

http://www.devarticles.com/c/a/JavaScript/Client-side-and-Server-side-JavaScript/2/

It means you can write server side script with JS language, but you may have to change the web server.

You can refer to :

http://en.wikipedia.org/wiki/Server-side_JavaScript

In this situation, you can use JS as language to develop, but you also have to ensure the develop platform is good enough for your product.

ZEAXIF
All server-side languages rely on server technology, by definition. They run on a server, and depend on running in a compatible environment.
eyelidlessness
+1  A: 

Lets define what is server-side script - server side scripting is programming the web-pages in such a way that they are capable serving dynamic content. Initial web was only serving static html contents. There are many server-side scripting technologies like, php, classic asp, python, asp.net, jsp and more. In case of classic asp you can have a language of your choice to code the classic asp server side pages, one is VBScript and the other JavaScript, so yes, you can do server-side scripting in javascript and render dynamic content from server-side to the client.

Once the web page is sent to client[web browsers!], the browsers also provide scripting mechanism so that the page does need to come from server for every operation, Like, rich UI management, Ajax, validating inputs and forms, taking user from one page to another, etc. Mostly this is written in javascript since all browsers support javascript. Note that Microsoft Internet explorer also support VBScript on client-side but that is not widely used since other browsers don't support VBScript. ExtJs is client-side javascript technology that leverages from rich javascript capabilities of all modern browsers. ExtJs scripts are sent from server to browser and only browser understands ExtJs and interpret into UI and Ajax actions. The server part does not come into picture only for the case of Ajax calls.

this. __curious_geek