Server Side Javascript

Discussion in 'JavaScript' started by saadi123, Apr 27, 2010.

  1. #1
    I am just starting to learn about SSJS. I wanna know is that before doing some server side javascripting, do I have to install anything to support it or is it just like ordinary javascript where the scripting can be done on the ordinary text editor like notepad?

    Secondly, if JS can do everything what php can do, then why people prefer to write their scripts on php?
     
    saadi123, Apr 27, 2010 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #2
    javascript is meant to run on a client/browser.
    I think "if JS can do everything what php can do" = false
    php is powerful than js, since it can do server side and client side, and a lot more features :D
     
    gapz101, Apr 27, 2010 IP
  3. saadi123

    saadi123 Well-Known Member

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Yeah, the original purpose of the JS was to enhance the client side interactivity but it can also create some server side scripts as well. I want to know is that do I have to install a compiler or something like that so that I can start writing server side JS on it or simple text editor is enough?
     
    saadi123, Apr 27, 2010 IP
  4. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #4
    it depends on what framework you are using. but when you say server side js, most of them are using ajax.
     
    gapz101, Apr 27, 2010 IP
  5. zerophean

    zerophean Peon

    Messages:
    91
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi its mean Comet / Ajax Reserve / HTTP Streaming

    So many engines , you can choose, APE , CometD, IceFace , etc....
     
    zerophean, Apr 29, 2010 IP