What scripting languages comes under client side and what and all comes under server side?
If JavaScript is scripting language, then what about jquery. jquery is nothing but javascript library rite? so jquery is client side scripting?
I goggled it, but its still confusing. In some sites its given, client side scripting are JavaScript and vb script and in some other sites its saying only JavaScript. In case of server side, they are mentioning html also.
Can i have a clear idea about this.
问题:
回答1:
Client Side:
Scripts that execute in client side. In context of websites, it is scripts that execute in the browser of the user.
Eg: Javascript, VB etc.
(JQuery, DOJO are libraries build on top of Javascript so it is also client side.)
Server Side:
Scripts that execute in the Server. In context of website, it is scripts that execute on application servers.
Eg: PHP, Python, Ruby etc
We cannot classify languages as client side or server side. There could be a scenario where a server can execute Javascript and render HTML from it. In this context Javascript becomes a server side lanuage. I hope I did not confuse you.
回答2:
What scripting languages comes under client side
For all practical purposes: JavaScript
and what and all comes under server side?
Every programming language under the sun (including JavaScript)
If JavaScript is scripting language, then what about jquery. jquery is nothing but javascript library rite? so jquery is client side scripting?
It is a library. Yes. Generally … it is geared very heavily towards the browser, but (in theory at least) you could use it with something like PhantomJS for manipulating webpages on the server.
I goggled it, but its still confusing. In some sites its given, client side scripting are JavaScript and vb script and in some other sites its saying only JavaScript. In case of server side, they are mentioning html also.
Internet Explorer (although prossibly only older versions) also supports VBScript for client side programming. Using it isn't practical on the WWW since it doesn't run anywhere else.
回答3:
Quoted with minor formatting changes from user61852's answer
"Here I will talk only about web programming.
Client side programming has mostly to do with the user interface, with which the user interacts. In web developing it's the browser, in the user's machine, that runs this code, and is mainly done in javascript, flash, etc. This code must run in a variety of browsers.
Its main tasks are:
validating input animation manipulating UI elements applying styles some calculations are done when you don't want the page to refresh so often The person in charge of front end programming must know:
javascript css HTML basic graphic design Ajax maybe Flash some 3rd party javascript libraries like JQuery UI design information design, etc.
Server side programming has to do with generating dynamic content. It runs on servers. Many of these servers are "headless". Most web pages are not static, they search a database in order to show the user updated personalized information. This sides interacts with the back end, like say, the database.
This programming can be done in a lot of languages:
PHP Java and jsp asp Perl Python Ruby on Rails, etc. This code has to do which:
Querying the database Encode the data into html Insert and update information onto the database Business rules and calculations The person in charge of server side programing must know:
some of the languages mentioned above HTML SQL, linux/unix shell scripting OOP business rules, etc."
回答4:
If the code is compiled/run on the clients machine, it is considered client-side. Serverside means a script which is compiled/run on the server before sending it to a browser. jQuery is just a library for JavaScript. That's all clientside.
For instance, some common used languages on the web.
Client-side: JavaScript
Server-side: PHP, Ruby, Perl
回答5:
In Client side scripting,Script file usually download on client system and client browser compiled this script file and generate HTML. And Generated HTML display by browser.
EX- JavaScript file, Jquery file, AngularJs file.
In server side scripting, when user request page for display then script run on server and generate dynamic HTMl file and send this HTML file to user.
EX- Asp(.asp), Asp.Net(.aspx), PHP(*.php).
回答6:
Please go through the below link
for client side programming and server side programming
https://softwareengineering.stackexchange.com/questions/171203/what-are-the-difference-between-server-side-and-client-side-programming
As for client side scripting and server side scripting. I think if you go through all the answers for this question you will get a clear idea.
jQuery is a framework that uses JavaScript internally.
回答7:
Javascript isn't just a client-side scripting language. It is extensively used for it. But it ain't its only use. Its just the way we use Javascript to implement our functionality. Its a misconception that Javascript is used only for client-side scripting.