Question:
server side scripting and client side scripting?
2010-05-13 07:34:01 UTC
how each different script type is processed
When or why each type of scripting might be applied
The relative merits of each type of scripting including advantages and disadvantages
The range of available scripting languages; etc.
Three answers:
Williard
2010-05-13 08:04:45 UTC
I suppose this is homework...



Anyway, servier side scripting is processed at the server itself; meaning all the code would be executed at the server, and only the result would be sent to the client. Client side scripting is processed at the client side; meaning the code would be sent to the client first, where it is eventually executed.



Server side scripting is generally applied to tasks where you don't want the end user to see the code or processed, or for tasks requiring input from the user and storage (e.g. dynamic website generation, bank programs, e-commerce, etc.). Client side scripting is used mostly for Web 2.0 applications, so that interaction would be a lot faster for the user/client.



For server side scripting, one advantage would be that the end-user won't see what algorithms are used to process the data, which is very important for secure or confidential transactions. Another advantage would be for storage of information on the server, from submissions and input of the user. The main disadvantage would be that everytime you have to process data, you need to send it back to the server before getting the result.



On the other hand, client side scripting is generally used for on-the-spot error checking, such as spelling checks and incorrect symbols, which is advantageous because unlike server side scripting, it is processed at the client itself, without any communication with the server, so it executes much faster. In the same perspective, it is also disadvantageous because the algorithm is stored in the client itself, so it poses problems especially in confidential and secure transactions.



There are lots of server side scripting languages available, such as C, C++, PHP, Ruby on Rails, Python, Perl, ASP, ASP.NET, etc. As for client side scripting languages, the ones I know of would be JavaScript, Java, Adobe Flash (or actionscrpit), Adobe Shockwave, and Silverlight (though some of these overlap with the definition of platforms).
Mauri
2016-04-12 16:54:33 UTC
Javascript can be used client side or server side it is a scripting language, however few application server support it. On Client side Javascript is specialized ( via api ) to DOM manipulation, and very limited user information storage . On server side it can manipulate database, of filesystem base on request data. Currently the only widely known server to use this is IIS in ASP pages, but this is an uncommon used option as moth of the asp pages are developed in VBscript.
reyhame 123
2010-05-13 07:54:48 UTC
1- server side is processed in server and then result is sent to user , like wrong password message or server time is ** client side is processed in user pc like , your current time is



2- server side is used to have more dynamic and secure pages , user side is mainly used for styling and interactive transactions



3- user side can cause data violation , server side is safer for data

user side is more interactive (like : you entered wrong email address) , server side scripting cant be interactive (unless user wait until data is sent and rechecked then the page is reloaded with error message)



4- numerous , but the most famous , asp and vbs, php , java , ....


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...