Hi All, What is difference between client & server side javascript? Can server side javascript open URL or Socket of any server,open any file from server,get the values from file,close the file and store the value of the server file into array of server script. if this possible, can client-side script display the updated value from serverside array value(which is value from server)? Thanks Angela
seems_josh
Greenhorn
Joined: Jan 06, 2001
Posts: 3
posted
0
hello in client side scripting you can use validation which you will be able to run on browser, but in server side scripting you have to pass a request and accordingly the server side scripting will perform the request eg if the username is incorrect than the server side scripting message will be display that username is not valid while in clientside if you miss to type passward than alert message will be display that you are requested to write passward seema
Ray Hunter
Greenhorn
Joined: Aug 01, 2000
Posts: 20
posted
0
Angela Jessi: I think the best way for explaining this is by visiting netscapes development pages and review the javaScript API's for both client and server. Client-side JavaScript is used many ways in browsers; whereas, Server-side JavaScript "you can create dynamic HTML pages that process user input and maintain persistent data using special objects, files, and relational databases. Through Java LiveConnect functionality, you can let Java and JavaScript code communicate with each other. From JavaScript, you can instantiate Java objects and access their public methods and fields. From Java, you can access JavaScript objects, properties, and methods." -above quote from JavaScript Documentation http://developer.netscape.com/docs/manuals/index.html Check out the above url, it has tons of information. ~Ray
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
posted
0
And just to add extra fun to the mix, the Resin web server and servlet container (free, good, and available from http://www.caucho.com/ ) lets you use JavaScript as the language to write JSPs in . It's server side JavaScript, but not as we know it ...
Hi Ray,Frank,seems_josh Thanks a lot for your responses. I have a question: Is it possible to access Java application(Not applet) in Javascript? If yes, how? Please let me know, Thanks Angela