Client & server side scripting

BaabtraMentoringPartner 10,838 views 20 slides Jan 01, 2015
Slide 1
Slide 1 of 20
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20

About This Presentation

Client & server side scripting


Slide Content

Abdul Raouf N [email protected] www.facebook.com/ Abdul Raouf twitter.com/Abdul Raouf in.linkedin.com/in/Abdul Raouf Typing speed:28wpm CLIENT SIDE & 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 Partner Baabtra -Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd

SCRIPTING LANGUAGES A scripting language is a programming language that supports the writing of scripts Can create dynamic web page Change based on user input For a web pages, they are instructions either to the web browser or to the web server.

ADVANTAGES OF SCRIPTING Easy to learn and use Minimum programming knowledge or experience required Allow complex tasks to be performed in relatively few steps Allow simple creation and editing in a variety of  text editors Allow the addition of dynamic and interactive activities to web pages Editing and running code is fast.

TYPES OF SCRIPTING LANGUAGE Client-side scripting language Server-side scripting language

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. Does not involve server processing Complete application is downloaded to the client browser Client browser executes it locally Are normally used to add functionality to web pages

CLIENT SIDE SCRIPTING 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 . Examples of Client side scripting languages : JavaScript ActionScript Dart VBScript Typescript

THE PROCESS WITH CLIENT-SIDE SCRIPTING

ADVANTAGES AND DISADVANTAGES Advantages Allow for more interactivity by immediately responding to users ' actions. Execute quickly because they don't require a trip to the server. Can give developers more control over the look and behavior of their Web widgets. Disadvantages Not all browsers support scripts, therefore, users might experience errors if no alternatives have been provided. Different browsers and browser versions support scripts differently , thus more quality assurance testing is required.

SERVER SIDE SCRIPTING Can use huge resources of the server Complete all processing in the server and send plain pages to the client Reduces client-side computation overhead The server is where the Web page and other content lives. The server sends pages to the user/client on request . Examples of Server side scripting languages : PHP ASP Perl Ruby

WHAT CAN SERVER SCRIPTS DO? Dynamically edit, change or add any content to a Web page. Respond to user queries or data submitted from HTML forms. Access any data or databases and return the result to a browser. Provide security since your server code cannot be viewed from a browser.

THE PROCESS WITH SERVER-SIDE SCRIPTING

ADVANTAGES AND DISADVANTAGES Advantages It reduces the load on the user’s computer, as it does not require plug-ins or browser scripting technology. You can use it to dynamically create pages on the fly.  New pages can even be instantly created based on certain user interaction. Disadvantages It requires the scripting software to be installed on the server. Many scripts and CMS tools require databases in order to store dynamic data.

COMPARISON Client side scripting U sed when the users browser already has all the code The Web Browser executes the client side scripting Cannot be used to connect to the databases on the web server Can’t access the file system that resides at the web server Response from a client-side script is faster as compared to a server-side script Server side scripting Used to create dynamic pages The Web Server executes the server side scripting Used to connect to the databases that reside on the web server Can access the file system residing at the web server Response from a server-side script is slower as compared to a client-side script

THE COMBINATION Many web sites use both types of scripting: server-side handles logging in, personal information and preferences and provides the specific data which the user wants (and allows new data to be stored) client-side makes the page interactive, displaying or sorting data.

THANK YOU...

Want to learn more about programming or Looking to become a good programmer?   Are you wasting time on searching so many contents online? Do you want to learn things quickly? Tired of spending huge amount of money to become a Software professional? Do an online course @  baabtra.com We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.

Follow us @  twitter.com/ baabtra Like us @ facebook.com/ baabtra Subscribe to us @ youtube.com/ baabtra Become a follower @ slideshare.net/ BaabtraMentoringPartner Connect to us @ in.linkedin.com/in/ baabtra 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 Stand Mukkam , Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Cafit Square, Hilite Business Park, Near Pantheerankavu , Kozhikode Start up Village Eranakulam , Kerala, India. Email: [email protected]