Post on 12-Jul-2015
Abdul Raouf N
Arn.raouf@gmail.com
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 ofbaabtra as a part of mentoring program. This is not officialdocument of baabtra –Mentoring PartnerBaabtra-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 pageChange 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 useMinimum 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 ActionScriptDart VBScript Typescript
THE PROCESS WITH CLIENT-SIDE SCRIPTING
ADVANTAGES AND DISADVANTAGES
AdvantagesAllow 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.
DisadvantagesNot 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. Newpages can even be instantly created based on certain userinteraction.
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
• Used 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 websites 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 designedto 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 StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
Cafit Square,Hilite Business Park,Near Pantheerankavu,Kozhikode
Start up VillageEranakulam,Kerala, India.
Email: info@baabtra.com