Client&server side scripting

16

description

Client&server side scripting

Transcript of Client&server side scripting

Page 1: Client&server side scripting
Page 2: 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

Page 3: Client&server side scripting

Week Target Achieved

1 21 19

2 24 21

3

Typing Speed

Page 4: Client&server side scripting

Jobs Applied# Company Designation Applied Date Current Status

1

2

3

Page 5: Client&server side scripting

Client side scripting & Server side scripting

Wasem [email protected]/

waseemhassantwitter.com/waseemhassan456in.linkedin.com/in/

waseemhassan9567850028

Page 6: Client&server side scripting

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)

Page 7: Client&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.

Page 8: Client&server side scripting

• 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

Page 9: Client&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

Page 10: Client&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.

Page 11: Client&server side scripting

• 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

Page 12: Client&server 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

Page 13: Client&server 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

Page 14: Client&server side scripting

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>

Page 15: Client&server side scripting

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

Page 16: Client&server side scripting

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]