0% found this document useful (0 votes)
18 views

Diff Server Client

Uploaded by

Rohit Maurya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Diff Server Client

Uploaded by

Rohit Maurya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Difference between Server-side

Scripting and Client-side Scripting


Client-side scripting
Client :
• A client is a party that requests pages from the
server and displays them to the end-user. In
general a client program is a web browser.
Client-side Programming :
• It is the program that runs on the client machine
(browser) and deals with the user
interface/display and any other processing that
can happen on client machine like reading/writing
cookies.
• Web browsers execute client-side scripting. It is
used when browsers have all code. Source code is
used to transfer from webserver to user’s
computer over the internet and run directly on
browsers. It is also used for validations and
functionality for user events.
Cont.
• It cannot be basically used to connect to
databases on a web server.
• Pages are altered on basis of the user’s choice. It
can also be used to create “cookies” that store
data on the user’s computer.
• The HTML and CSS are delivered as plain text
when a user uses a browser to request a webpage
from the server, and the browser understands
and renders the web content at the client end.
Cont.
• 1) Interact with temporary storage
2) Make interactive web pages
3) Interact with local storage
4) Sending request for data to server
5) Send request to server
6) work as an interface between server and
user
Client-side Scripting Languages

1) HTML
2) CSS
3) Javascript
4) VBScript
5) AJAX
HTML:
• Markup languages are computer languages that
are used to structure, format, or define
relationships between different parts of text
documents with the help of symbols or tags
inserted in the document.
• Hypertext Markup Language (HTML) is a markup
language used to create and link webpages. It
defines the basic structure of a web page and
contains meta-data about the page and a series of
elements to be displayed on the web page.
2. Server-side scripting :
• Server:
• The Server is responsible for serving the web
pages depending on the client/end-user
requirement. It can be either static or
dynamic.
Server-side scripting
• Server-side scripting is a programming
technique for creating code that run software
on the server side.
• At the server end, actions such as website
customization, dynamic changes in website
content, response creation to user requests,
database access, and many more are carried
out.
Cont.
• The server-side is made up of three parts: the
database, the server, the APIs.
• When a browser requests a page with
server-side scripting, the web server evaluates
the script before delivering the page to the
browser.
• The output is provided to the web browser
when the script is processed. The web server
hides the scripts from the end user until the
content is delivered, making the data and
source code safer.
It is the program that runs on server
dealing with the generation of content
of web page.
• 1) Querying the database
2) Operations over databases
3) Access/Write a file on server.
4) Interact with other servers.
5) Structure web applications.
6) Process user input.
• For example if user input is a text in search
box, run a search algorithm on data stored on
server and send the results.
Server-side scripting languages

• 1) PHP
2) Python
3) Ruby
Difference between client-side
scripting and server-side scripting :
Difference between Static and
Dynamic Web Pages
• Static Web pages:
• Static Web pages are very simple. It is written in
languages such as HTML, JavaScript, CSS, etc.
• For static web pages when a server receives a
request for a web page, then the server sends the
response to the client without doing any
additional process.
• These web pages are seen through a web
browser.
• In static web pages, pages will remain the same
until someone changes it manually.
Static web page

• Static web page


Dynamic Web Pages:
• Dynamic Web Pages are written in languages
such as CGI, AJAX, ASP, ASP.NET, etc.
• In dynamic web pages, the Content of pages
is different for different visitors. It takes more
time to load than the static web page.
• Dynamic web pages are used where the
information is changed frequently, for
example, stock prices, weather information,
etc.
Dynamic web page

You might also like