Click here to Skip to main content
15,887,966 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Respected Sir/Mam,

I would like to know by what pattern we call any language server-side or client side

Client side like:- HTML,javascript etc.

Server side loke:- ASP,PHP,Java etc.

What makes the above language to be called as server side or client side

Thanks in advance
Posted
Updated 22-Nov-11 6:34am
v2

A question itself does not seem to make much sense: what makes a language to be a client side or server side? Nothing, some historical reasons. If a language is, for example, imperative (http://en.wikipedia.org/wiki/Imperative_programming[^]), it could be potentially used on server side.

However, there is one important question about that. Why there are so many server-side languages and technologies, but Web client server-side is only JavaScript/ECMAScript? (I don't count VB as this language is not supported by many browsers.)

The answer is: this is apparent social phenomena which emerged "in response" to basic Web technology and HTTP protocol. This is a matter of "ecology" of developing technosphere, see http://en.wikipedia.org/wiki/Novel_ecosystem[^].

Features of the client-site should be universal and supported on all platforms, but the content itself, including the script code, is loaded from the server. Different languages would strongly damage a simple compatibility principle of the Web: a Web application should work on nearly all platforms and browsers. And even though there are multiple incompatibilities, especially in rendering, accurately written Web applications are compatible with those platforms and major browsers. Due to this fact, multiple client-side scripting languages cannot survive; and by some historical reasons, only JavaScript survived. Exclusions like requirements to use incompatible things like ActiveX plug-ins, as it often happens, justify the rule.

Server-side belongs to a single company, or a single user of a Web hosting which usually provides some range of server-side technologies. The server-side remains completely invisible to the users of a Web application. Due to this fact, the selection of a server-side technology depends on an owner of a Web site, and the server-side languages and technologies flourished.

—SA
 
Share this answer
 
v3
Comments
Abhinav S 23-Nov-11 0:40am    
5.
Sergey Alexandrovich Kryukov 23-Nov-11 21:47pm    
Thank you, Abhinav.
--SA
Prashant Srivastava LKO 25-Nov-11 4:09am    
Nice answer sir my 5 for u.
Sergey Alexandrovich Kryukov 25-Nov-11 4:13am    
Thank you, Prashant.
--SA
_Zorro_ 25-Nov-11 4:37am    
+5!
The answer is in your question itself, the code which executes or run at client machine is called a client side(which do not require any server for execution), and the code which executes at server(such as IIS, Apache etc.) end are called server side.

hope it helps :)

for further queries comment here!!
 
Share this answer
 
Comments
Prashant Srivastava LKO 22-Nov-11 12:51pm    
if HTML and javascript will run on server that will make them serverside
Uday P.Singh 22-Nov-11 13:04pm    
why would they run at server?
fjdiewornncalwe 22-Nov-11 13:26pm    
Don't look at server and client as necessarily being different computers. As server and client can both exist on the same computer. It is that Html and Javascript are executed by a browser as a client while the application code (i.e. asp.net, php) require a server environment to run.
Sergey Alexandrovich Kryukov 22-Nov-11 13:53pm    
HTML on server makes no sense at all as this language defined presentation on screen, rendering, etc. As to the server-side JavaScript, it does exist.
--SA
Abhinav S 22-Nov-11 13:03pm    
5!
You can get some information here[^]. This has a good video to go through.

If you are looking at scripting, Client-side_scripting[^] and server side scripting[^].
 
Share this answer
 
Comments
Prashant Srivastava LKO 22-Nov-11 12:59pm    
Thanks Sir nice answer
Abhinav S 22-Nov-11 13:05pm    
You are welcome.
Abhinav S 22-Nov-11 13:13pm    
Thanks.
Uday P.Singh 22-Nov-11 13:05pm    
very nice links abhinav 5ed :)
Abhinav S 22-Nov-11 13:07pm    
Thank you Uday.
The simple answer is:
When a client computer access something on a server computer.
Which computer runs what?

C# can run in the server and in the client.
But by default, when doing a web-page, a C# code runs in the server, generates a page and maybe returns/generates a javascript.
Such javascript then runs in the client.

So, for that situation, C# is server side while javascript is client side.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 22-Nov-11 14:14pm    
I vote only 4 because this answer does not answer the question about languages: what makes them applicable to server-side, client-side or both? The question makes certain sense despite the fact it is not really correct.

Please see my answer.
--SA
Simplest explanation:

Client-side: the one used by the client/user.

Server-side: the one that is running on the server based on the request from the client.

Best regards,
Eduard
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900