This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Please Answer my Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Please Answer my Query" Watch "Please Answer my Query" New topic
Author

Please Answer my Query

Hansika maan
Greenhorn

Joined: Apr 03, 2009
Posts: 1
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
No such thing? Let me google server side javascript for you
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 )
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Answer my Query
 
Similar Threads
Executing jars from jsp
refresh check
WA #1.....word association
ClassNotFoundException
Print invoice - JSP