Differences between
CLIENT SIDE &
SERVER SIDE
JavaScript
You want your web pages to be more interactive?
YOU HAVE 2 WAYS
which are often used together because
THEY DO VERY DIFFERENT THINGS
SCRIPTS
A script = set of instructions
When referring to Web pages
we have instructions:
to the Web browser -
CLIENT SIDE
scripting
to the server -
SERVER SIDE
scripting
CLIENT SIDE Scripting
CLIENT =the system on which the Web browser is running
JavaScript
is by far, the
main client side
scripting language of the Web
(there are other like ActionScript, DART, VBScript)
Client side scripts
are interpreted by the browser are executed on the local computer after the web page is loaded
HOW?
The u
ser requests a web page from the server
The server finds the page and sends it to the user
The pa
ge is displayed on the browser while scripts are running during or after it was displayed
When downloading a page in your browser the dynamic behavior is already part of the web page in question
When you interact with the page the script executes
CLIENT SIDE Scripting is used to
CHANGE Web pages
AFTER THEY ARE PLACED IN THE BROWSER
(eg: online form -phone no. / online store - total changes)
SERVER SIDE Scripting
SERVER
=
a place where the web page
& other content live
The SERVER sends a web page to the user,
BY REQUEST
HOW?
you request a page from a server
the script on the page is interpreted by the server
/ changing the page content so that it suits the user
the page in its final form is sent to the user (eg. sign into bank account)
SERVER SIDE
Scripting
is used for the users that have individual accounts and provides data from a DATABASE
SERVER SIDE
Scripting
allows a powerful level of
PRIVACY | PROVISION | INFORMATION
(well suited for e-commerce or social sites)
Main technologies for SERVER SIDE Scripting:
Node.js PHP
ASP.net
GOOD TO KNOW:
server side scripts are never seen by the user
they run on the server which generates result and only after are sent to the user
although running all these scripts puts pressure on the server, the user' s system is not affected
IN CONCLUSION
CLIENT SIDE
deals with:
making pages interactive
displays data in different ways
SERVER SIDE
deals with:
logging in
personal information
provides data which the user needs
allows you to store new data
Made with Slides.com