Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Answer my Query

 
Hansika maan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the main difference between Client side JavaScript and and Server side Java Script. How actually they run on both side with Example?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hansika maan wrote: Server side Java Script.

There is nothing like "server side JavaScript", you are confusing it with client side and server side validation.

Client side validation, say for example used to validate any logical or prefixed format of data, like ZIP code or name which contains numbers.
Server side validation - when you want to validate data from server persists data, like against database. e.g whether user id/passwords matches, this validation is done against the registered values from server.

HTH and welcome to JR
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No such thing? Let me google server side javascript for you
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this FAQ Entry on using a Meaningful Subject line: http://faq.javaranch.com/java/old/UseAMeaningfulSubjectLine.2007-09-17-08.18.13

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And there are frameworks that run JavaScript on the serverside: http://www.aptana.com/jaxer

JavaScript does not have to run in a browser. There are tons of places that use it.

Eric
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the confidence when I said you can't run JavaScript on server side
Sorry, I didn't know that, thanks Carol & Eric for letting me know the various possibilities of JS usage and execution, its not only for browsers (though Netscape people invented it for browsers )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic