0% found this document useful (0 votes)
1 views4 pages

Client-Sidescripting & Server Side Scripting

Client-side scripting involves executing scripts in the user's browser without server interaction, primarily using languages like JavaScript and jQuery for dynamic web elements. In contrast, server-side scripting processes code on the server, utilizing languages such as PHP and Python, to manage databases and secure user credentials. Each method has its advantages and disadvantages, with client-side offering faster execution but less security, while server-side provides better security and database access but is slower.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views4 pages

Client-Sidescripting & Server Side Scripting

Client-side scripting involves executing scripts in the user's browser without server interaction, primarily using languages like JavaScript and jQuery for dynamic web elements. In contrast, server-side scripting processes code on the server, utilizing languages such as PHP and Python, to manage databases and secure user credentials. Each method has its advantages and disadvantages, with client-side offering faster execution but less security, while server-side provides better security and database access but is slower.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Client side scripting

It is a process in which the code along with HTML web page is sent to the
client by the server. Here the code refers to the Script. In other simple words
client side scripting is a process in which scripts are executed by browsers
without connecting to the server.

The code executes on the browsers of client computer either during the loading
of web page or after the web page has been loaded. Client side scripting is
mainly used for dynamic user interface elements such as pull-down menus,
navigation tolls, animation buttons , data validations purpose etc.

JavaScript and JQuery are the most important client side scripting languages
or web scripting and widely used responsive web pages and web sites.

Client side script is a small program ( or set of instructions) that is


embedded(or inserted) into a web page. It is processed within the client
browser instead of the web server.

Popular client side scripting languages

1. Javascript: it is most widely used client-side scripting or programming


language. It is based on ECMA script standard language.
2. VBScript : this scripting language is developed by Microsoft, based on
the visual Basic.
3. JQuery : is a fast, small lightweight JavaScript library. It is used to
facilitate a lot of JavaScript code into simple-to-use functionality.

Applications of client-side Scripting

1. Client side scripting is used for validation purpose.(if the user enters
incorrect credentials on login page, the web page displays an error
message on the client machine without submitting it to the web server.
2. To create AD banners that interact with the user rather than simply
displaying Graphics
3. To create animated images that changes when we move the mouse over
them.
4. Client side script can be used to detect installed plug-in and notify the
user if a program is required.

Disadvantages

1. Client side scripting is unsecure.


2. Client side scripting cannot be used if we need to access databases.
3. The smooth running of the script depends entirely on the client
browsers, its configurations and security level.

Server side scripting

A process in which the script code is executed by the web server on the
server side after the page is requested is called server side scripting.

The server accepts request from the client computer, processes the request and
sends the result to the respective client computer that has placed the request.

Server side script

A server side script is a program that is executed on the server side when the
user request information. The script do not download at the client side.

Server side scripting languages

1. PHP (HyperText Preprocessor) is a server side interpreted language. It


is widely used open source general purpose scripting languages. it is
primarily used to create dynamic web pages and web sites.
2. Python : Python is an object oriented scripting programming language..
Python is an interpreted language, one of the major advantage of using
python is that it is cross platform language with interpreters available
for every major operating systems.
Therefore a single python program can be executed across any platform,
regardless of operating system and Hardware.
3. Perl it is mainly used for a wide range of tasks including system
administration, web development, network programming, GUI
development and like python it is object oriented programming
language.
Applications

1. Server side scripting is used to protect the credentials.


2. When we submit an online application, the data or information entered
in the form is stored in the database of the server.
3. At the server side we can dynamically edit, add, remove or update the
content of web page at any moment.

Advatantges

1. Server side scripting is an independent of browser.


2. Server side script cannot be disabled at the client side.
3. Server side scripting is more secure than client-side scripting.
4. It can access files and databases that do not normally be available to
the client or user.

Disadvantages

1. Server side scripting is slower than client side scripting. It takes too
much time becoz it requires request from the client.
2. We require a lot of processing speed for running complex tasks.

Head-to-head comparison between Server-side Scripting and Client-side


Scripting

Features Server-side Scripting Client-side Scripting

Primary The main function of this The main purpose of this


Function scripting is to manipulate scripting is to give the
and grant access to the requested output to the end-
requested database. user.
Uses It is employed at the It is utilized at the front end,
backend, where the which users may view
source code is invisible through the browser.
or concealed on the client
side.
Processing It needs server It doesn't need any server
interaction. interaction.
Security It is more secure while It is less secure than server-
working on a web app. side scripting due to the
code accessibility offered to
the client.
Running It executes on the web It executes on the remote
server. computer system.
Dependability It doesn't depend on the It depends on the user's
client. browser version.
File Access It offers complete access It doesn't offer any access to
to the file that is stored in the files on the web servers.
the web database server.
Code It enables the backend The user is given access to
Allowance developer to hide the the written code after
source code from the confirming their
user. requirements.
Occurrence It only responds after the It happens when the browser
user begins the browsing processes all of the codes
request. and then acts according to
the client's needs.
Affect It may reduce the server It may effectively customize
load. web pages and offer
dynamic websites.
Languages The server-side scripting Its programming languages
Involved programming languages, are HTML, CSS, and
such as PHP, ColdFusion, JavaScript.
Python, [Link], Java,
C++, Ruby, C#, etc.

You might also like