Client&server side scripting
-
Upload
baabtracom-mentoring-partner-first-programming-school-in-india -
Category
Technology
-
view
919 -
download
1
description
Transcript of Client&server side scripting
Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
Week Target Achieved
1 21 19
2 24 21
3
Typing Speed
Jobs Applied# Company Designation Applied Date Current Status
1
2
3
Client side scripting & Server side scripting
Wasem [email protected]/
waseemhassantwitter.com/waseemhassan456in.linkedin.com/in/
waseemhassan9567850028
Script
• Script is a set of instructions• For a web pages, they are instructions either
to the web browser(client side scripting) or to the web server(server side scripting)
Server-side scripting
• Server side scripting is used to create dynamic pages based a number of conditions when the users browser makes a request to the server
• The Web Server executes the server side scripting that produces the page to be sent to the browser.
• Server executes server-side scripts to send out a page but it does not execute client-side scripts.
• Server side scripting is used to connect to the databases that reside on the web server.
• Server side scripting can access the file system residing at the web server.
Server-side scripting
• Response from a server-side script is slower as compared to a client-side script because the scripts are processed on the remote computer.
• Examples of Server side scripting languages : PHP, JSP, ASP.Net, Ruby, Perl ,etc.
Server-side scripting
Client-side scripting
• Client side scripting is used when the users browser already has all the code and the page is altered on the basis of the users input.
• The Web Browser executes the client side scripting that resides at the user’s computer.
• The browser receives the page sent by the server and executes the client-side scripts.
• Client side scripting cannot be used to connect to the databases on the web server.
• Client side scripting can’t access the file system that resides at the web server.
Client-side scripting
• The files and settings that are local at the user’s computer can be accessed using Client side scripting.
• Response from a client-side script is faster as compared to a server-side script because the scripts are processed on the local computer.
• Examples of Client side scripting languages : Javascript, VB script, etc.
Client-side scripting
A ‘Simple’ Web Request
:Web
Browser
ÀWeb
Server
1 - Request an HTML Page
4 - Present HTML Content
2 - Retrieve requested HTML
3 - Return HTML to Browser
HTML
A JavaScript Example
Display Date and Time…..<!DOCTYPE html><html><head><script>function displayDate(){document.getElementById("demo").innerHTML=Date();}</script></head><body>
<h1>My First JavaScript</h1><p id="demo">This is a paragraph.</p>
<button type="button" onclick="displayDate()">Display Date</button>
</body></html>
If this presentation helped you, please visit our page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us
Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
Start up VillageEranakulam,Kerala, India.
Email: [email protected]