What is difference between server side scripting and client side scripting?
Answers
Answer:
Explanation:
Apachebooster Blog: Showcasing the tech blogs written by our writers
Home
About
Features
Benchmarks
Screenshots
Pricing
Installation
Contact
Difference between client and server-side scripting
December 18, 2017
Client and server-side scripting
All websites usually run on three components namely the server, the client and the database. To view a website, an individual has to use a browser. This browser can be termed as a client. The client can use different technologies like mobile phones, laptops, computers, tablets, etc. to view the websites. Here the client side scripting is being used and processed. The client-side scripting is performed by a browser.
The server can, however, be at any remote place around the globe. The server can run back-end architecture of a website, process requests, send pages to the browser, and so on. Server-side scripting is usually done by a web server. The main task of the script here is to extract the correct data from the database and use it for the web project.
Client side scripting
Client scripting can be defined as a code that is present in a client’s HTML page. It is usually attached to the browser in a language that is compatible with the browser. The language used for client scripting is JavaScript. It is the most widely used language for client-side scripting. It is compatible and has the ability to run on any browsers. The browser then downloads that code temporarily and processes it without the server. If additional information is required, a request is raised and sent to the server.
Earlier, Client scripting was used mainly for page navigation, formatting, and data validation. Today, Client-side scripting is rapidly growing and evolving. As a result, it is now faster and easier to do client-side scripting, leaving less work for the server.
Server side scripting
The server-side scripting usually happens on the back-end of a website. The user does not get access to view what happens here. A server-side scripting creates a path for the website to the database and all the behind-the-scene work which organizes and runs a website. In server-side scripting, the responses can be customized solely based on the requirement of the user.
ᴛʜᴇ ᴍᴀɪɴ ᴅɪғғᴇʀᴇɴᴄᴇ ʙᴇᴛᴡᴇᴇɴ sᴇʀᴠᴇʀ-sɪᴅᴇ sᴄʀɪᴘᴛɪɴɢ ᴀɴᴅ ᴄʟɪᴇɴᴛ-sɪᴅᴇ sᴄʀɪᴘᴛɪɴɢ ɪs ᴛʜᴀᴛ ᴛʜᴇ sᴇʀᴠᴇʀ sɪᴅᴇ sᴄʀɪᴘᴛɪɴɢ ɪɴᴠᴏʟᴠᴇs sᴇʀᴠᴇʀ ғᴏʀ ɪᴛs ᴘʀᴏᴄᴇssɪɴɢ. ... ᴛʜᴇ ᴄʟɪᴇɴᴛ-sɪᴅᴇ sᴄʀɪᴘᴛ ᴇxᴇᴄᴜᴛᴇs ᴛʜᴇ ᴄᴏᴅᴇ ᴛᴏ ᴛʜᴇ ᴄʟɪᴇɴᴛ sɪᴅᴇ ᴡʜɪᴄʜ ɪs ᴠɪsɪʙʟᴇ ᴛᴏ ᴛʜᴇ ᴜsᴇʀs ᴡʜɪʟᴇ ᴀ sᴇʀᴠᴇʀ-sɪᴅᴇ sᴄʀɪᴘᴛ ɪs ᴇxᴇᴄᴜᴛᴇᴅ ɪɴ ᴛʜᴇ sᴇʀᴠᴇʀ ᴇɴᴅ ᴡʜɪᴄʜ ᴜsᴇʀs ᴄᴀɴɴᴏᴛ sᴇᴇ.