SlideShare a Scribd company logo
1 of 15
Scripting Languages
Diane Krebs
11-7-14
Overview
๏‚š How it works
๏‚š What are scripts
๏‚š Different Scripting Languages
๏‚š Web pages & scripts
๏‚š Conclusion
:Web
Browser
๏ƒ€
Web
Server
1 - Request an HTML Page
4 - Present HTML Content
2 - Retrieve requested HTML
3 - Return HTML to Browser
HTML
How it Works
I n t e r n e t
Client requests page
Completed HTML sent to client
Web Server
Client Machine
With Web Browser
โ€ข The script, written by the website developer, generates the HTML code of the page requested.
โ€ข The HTML code is not actually a file. The code is actually held in the serverโ€™s memory until it is
sent directly to the client.
โ€ข A script may run other scripts, depending on its function. It will however still only give one
end result.
โ€ข A website does not have to be completely made up of either scripts or HTML files. It can use a
combination of the two.
Script builds
HTML code
HTML ready to send
Server runs script
[ ASP / PHP / Ruby ]
Script
HTML Code
How Scripting Languages Work
What Are Scripts?
๏‚š A new style of programming language different from system
programming languages
๏‚š It does not matter what scripting language a website uses
because there are no compatibility issues with clientsโ€™ web
browsers.
๏‚š Designed as glue language or system integration language
๏‚š A single statement can execute huge number of machine
instructions
๏‚š Can create dynamic web pages
๏‚š Change based on user input
๏‚š The client only ever sees the final HTML generated by the script
and not the script itself.
๏‚š Scripts often finish running in several milliseconds. Most web
servers can run many scripts simultaneously with a minimal
performance hit.
Two Types
๏‚š Server-side Scripting Language
๏‚š 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
๏‚š Client-side Scripting Language
๏‚š 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 e.g.
different menu styles, graphic displays or dynamic
advertisements
I n t e r n e t
1. Client requests page
2. Web server sends the HTML file to the client
Web Server
Client Machine
With Web Browser
โ€ข A simple website is made up of one or more static HTML files. This means the page
content does not change.
โ€ข The only way to update a page is for the author to edit the file.
โ€ข This is fine for small websites or those that require little updating.
โ€ข Static pages will not work for websites that need to deliver lots of custom and up-to-
date content: e-commerce, auctions, blogs, search engines, online banking
Static Web Pages
โ€ข The facebook homepage could be
considered static because it has a
fixed layout and content. It does
not change.
โ€ข After Login results page however
is dynamic. This means its
content can be changed.
โ€ข The only practical way to create
this page is by using a script
โ€ข The user never sees the work a
script does, only the end result it
sends back to their browser.
DynamicWebPageStaticWebPage
Dynamic Web Pages
Perl, Python, Ruby
๏‚š Perl
๏‚š Found on all Windows and Linux servers
๏‚š Can handle text manipulation tasks
๏‚š Excellent web scripting language
๏‚š high-traffic websites that use Perl extensively
include Priceline.com, Craigs List, IMDB
๏‚š Python
๏‚š Can be used as a script or a programming language
๏‚š OOP language with a lot of features which support of web
applications as well as software programs
๏‚š Industrial Light & Magic: "The Phantom Menace", "The Mummy
Returns"
๏‚š Walt Disney Feature Animation: uses scripts in their animation
production system.
๏‚š Shopzilla: configuration management and deployment, automated
testing and internal tool development.
Perl Python, Ruby
๏‚š Ruby
๏‚š Various blogs, data processing applications
๏‚š Twitter, Shopify, Groupon, HUlu
๏‚š Ruby, Perl, Python, etc., are all open source
๏‚š Rely on volunteers to
๏‚š Write documentation
๏‚š Write test cases
๏‚š Maintain the systems
๏‚š Port to new platforms
๏‚š Fix bugs
๏‚š Implement libraries
๏‚š Implement new features
ASP-PHP
๏‚š Active Server Pages (ASP)
๏‚š Server side scripting language
๏‚š Developed by Microsoft
๏‚š Good at connecting to Microsoft databases
๏‚š Runs only on Microsoft servers
๏‚š Microsoft.com, GoDaddy, Skype, NYTimes.com
๏‚š PHP (Hypertext Pre-Processor)
๏‚š Especially good at connecting to MySQL
๏‚š Generate Dynamic content and good User Interface
๏‚š Server side execution
๏‚šFacebook, Wikipedia, Yahoo, Photo-bucket, &
WordPress
JavaScript
๏‚š JavaScript
๏‚š Java and JavaScript are two completely different
languages in both concept and design
๏‚š Client-side & server-side scripting language
๏‚š Enhance dynamics and interactive features of a web
page
๏‚š Allows one to perform calculations, write interactive
games, add special effects, customize graphic
selections, create security passwords
๏‚š used in millions of web pages
๏‚što improve the design
๏‚što validate forms
๏‚što detect browsers
๏‚što create cookies
JavaScript and HTML page
<html>
<body>
<script type=โ€œtext/javascriptโ€>
document.write(โ€œHello World!โ€);
</script>
</body>
</html>
This code produce the output on an HTML page:
Hello World!
Tells where the JavaScript ends
Tells where the JavaScript starts
Commands for writing output to a page
Conclusion
๏‚š Scripting languages make the web development work
๏‚š Easier
๏‚š Faster
๏‚š Best utilization of resources
๏‚š http://www.w3schools.com/html/html_scripts.asp
Questions

More Related Content

What's hot

Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
webhostingguy
ย 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
Raghuveer Guthikonda
ย 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
Mohammed Safwat
ย 

What's hot (20)

Client & server side scripting
Client & server side scriptingClient & server side scripting
Client & server side scripting
ย 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
ย 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
ย 
Asp net
Asp netAsp net
Asp net
ย 
Object Oriented Programming Languages
Object Oriented Programming LanguagesObject Oriented Programming Languages
Object Oriented Programming Languages
ย 
Lecture-1: Introduction to web engineering - course overview and grading scheme
Lecture-1: Introduction to web engineering - course overview and grading schemeLecture-1: Introduction to web engineering - course overview and grading scheme
Lecture-1: Introduction to web engineering - course overview and grading scheme
ย 
PHP Presentation
PHP PresentationPHP Presentation
PHP Presentation
ย 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
ย 
Js ppt
Js pptJs ppt
Js ppt
ย 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
ย 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
ย 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
ย 
Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1
ย 
Php introduction
Php introductionPhp introduction
Php introduction
ย 
Asp.net.
Asp.net.Asp.net.
Asp.net.
ย 
javaScript.ppt
javaScript.pptjavaScript.ppt
javaScript.ppt
ย 
Web Application
Web ApplicationWeb Application
Web Application
ย 
Web servers
Web serversWeb servers
Web servers
ย 
Apache web service
Apache web serviceApache web service
Apache web service
ย 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
ย 

Viewers also liked

Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
ย 
Beginners PHP Tutorial
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
alexjones89
ย 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
Manish Bothra
ย 
learning html
learning htmllearning html
learning html
manoj mehta
ย 
Events
EventsEvents
Events
Josh Guo
ย 
Javascript Tlabs
Javascript TlabsJavascript Tlabs
Javascript Tlabs
msneha
ย 
Exception handler
Exception handler Exception handler
Exception handler
dishni
ย 
Javascript Intro 01
Javascript Intro 01Javascript Intro 01
Javascript Intro 01
vikram singh
ย 
Php course-syllabus
Php course-syllabusPhp course-syllabus
Php course-syllabus
Himanshu Himanshu
ย 

Viewers also liked (20)

Server Side Programming
Server Side Programming Server Side Programming
Server Side Programming
ย 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
ย 
Client and server side scripting
Client and server side scriptingClient and server side scripting
Client and server side scripting
ย 
Server and Client side comparision
Server and Client side comparisionServer and Client side comparision
Server and Client side comparision
ย 
Beginners PHP Tutorial
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
ย 
Programming languages
Programming languagesProgramming languages
Programming languages
ย 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
ย 
Client Side scripting and server side scripting
Client Side scripting and server side scriptingClient Side scripting and server side scripting
Client Side scripting and server side scripting
ย 
learning html
learning htmllearning html
learning html
ย 
Cgi
CgiCgi
Cgi
ย 
Events
EventsEvents
Events
ย 
Javascript Tlabs
Javascript TlabsJavascript Tlabs
Javascript Tlabs
ย 
javascript examples
javascript examplesjavascript examples
javascript examples
ย 
Exception handler
Exception handler Exception handler
Exception handler
ย 
Java Script - Module I
Java Script - Module IJava Script - Module I
Java Script - Module I
ย 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
ย 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
ย 
Javascript Intro 01
Javascript Intro 01Javascript Intro 01
Javascript Intro 01
ย 
Client side and server side scripting
Client side and server side scriptingClient side and server side scripting
Client side and server side scripting
ย 
Php course-syllabus
Php course-syllabusPhp course-syllabus
Php course-syllabus
ย 

Similar to Scripting languages

Anvita Gita Supersite Case Study Nov2000
Anvita   Gita Supersite Case Study Nov2000Anvita   Gita Supersite Case Study Nov2000
Anvita Gita Supersite Case Study Nov2000
guest6e7a1b1
ย 
Rutgers - Active Server Pages
Rutgers - Active Server PagesRutgers - Active Server Pages
Rutgers - Active Server Pages
Michael Dobe, Ph.D.
ย 
Web programming by kiran and team
Web programming by kiran and teamWeb programming by kiran and team
Web programming by kiran and team
Hemanth Kumar N
ย 
Dynamic websites lec5
Dynamic websites lec5Dynamic websites lec5
Dynamic websites lec5
Belal Arfa
ย 

Similar to Scripting languages (20)

Server side scripting
Server side scriptingServer side scripting
Server side scripting
ย 
Server side scripting
Server side scriptingServer side scripting
Server side scripting
ย 
Static dynamic and active web pages
Static dynamic and active web pagesStatic dynamic and active web pages
Static dynamic and active web pages
ย 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
ย 
unit1 part 1 sem4 php.docx
unit1 part 1 sem4 php.docxunit1 part 1 sem4 php.docx
unit1 part 1 sem4 php.docx
ย 
Web Technology Fundamentals
Web Technology FundamentalsWeb Technology Fundamentals
Web Technology Fundamentals
ย 
Tech talk php_cms
Tech talk php_cmsTech talk php_cms
Tech talk php_cms
ย 
Anvita Gita Supersite Case Study Nov2000
Anvita   Gita Supersite Case Study Nov2000Anvita   Gita Supersite Case Study Nov2000
Anvita Gita Supersite Case Study Nov2000
ย 
Rutgers - Active Server Pages
Rutgers - Active Server PagesRutgers - Active Server Pages
Rutgers - Active Server Pages
ย 
PhP Training Institute In Delhi
PhP Training Institute In DelhiPhP Training Institute In Delhi
PhP Training Institute In Delhi
ย 
Web programming by kiran and team
Web programming by kiran and teamWeb programming by kiran and team
Web programming by kiran and team
ย 
Fundamental of-web design-trends-20142
Fundamental of-web design-trends-20142Fundamental of-web design-trends-20142
Fundamental of-web design-trends-20142
ย 
Introduction to PHP.pptx
Introduction to PHP.pptxIntroduction to PHP.pptx
Introduction to PHP.pptx
ย 
Webdevelopment
WebdevelopmentWebdevelopment
Webdevelopment
ย 
C# and Dot Net Framework 1st & 2nd Unit.pdf
C# and Dot Net Framework 1st & 2nd Unit.pdfC# and Dot Net Framework 1st & 2nd Unit.pdf
C# and Dot Net Framework 1st & 2nd Unit.pdf
ย 
Server side scripting
Server side scriptingServer side scripting
Server side scripting
ย 
Dynamic websites lec5
Dynamic websites lec5Dynamic websites lec5
Dynamic websites lec5
ย 
Class 10
Class 10Class 10
Class 10
ย 
Php verses .net
Php verses .netPhp verses .net
Php verses .net
ย 
Full Stack Web Development
Full Stack Web DevelopmentFull Stack Web Development
Full Stack Web Development
ย 

Recently uploaded

Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
SUHANI PANDEY
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
SUHANI PANDEY
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
SUHANI PANDEY
ย 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
SUHANI PANDEY
ย 

Recently uploaded (20)

Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
ย 
Enjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort Service
Enjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort ServiceEnjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort Service
Enjoy NightโšกCall Girls Samalka Delhi >เผ’8448380779 Escort Service
ย 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
ย 
Call Now โ˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now โ˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
ย 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
ย 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
ย 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
ย 
Enjoy NightโšกCall Girls Dlf City Phase 3 Gurgaon >เผ’8448380779 Escort Service
Enjoy NightโšกCall Girls Dlf City Phase 3 Gurgaon >เผ’8448380779 Escort ServiceEnjoy NightโšกCall Girls Dlf City Phase 3 Gurgaon >เผ’8448380779 Escort Service
Enjoy NightโšกCall Girls Dlf City Phase 3 Gurgaon >เผ’8448380779 Escort Service
ย 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
ย 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
ย 
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
ย 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
ย 
๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
๐“€คCall On 7877925207 ๐“€ค Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
ย 
Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now โ˜Ž 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
ย 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
ย 
Busty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort Service
Busty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort ServiceBusty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort Service
Busty DesiโšกCall Girls in Vasundhara Ghaziabad >เผ’8448380779 Escort Service
ย 

Scripting languages

  • 2. Overview ๏‚š How it works ๏‚š What are scripts ๏‚š Different Scripting Languages ๏‚š Web pages & scripts ๏‚š Conclusion
  • 3. :Web Browser ๏ƒ€ Web Server 1 - Request an HTML Page 4 - Present HTML Content 2 - Retrieve requested HTML 3 - Return HTML to Browser HTML How it Works
  • 4. I n t e r n e t Client requests page Completed HTML sent to client Web Server Client Machine With Web Browser โ€ข The script, written by the website developer, generates the HTML code of the page requested. โ€ข The HTML code is not actually a file. The code is actually held in the serverโ€™s memory until it is sent directly to the client. โ€ข A script may run other scripts, depending on its function. It will however still only give one end result. โ€ข A website does not have to be completely made up of either scripts or HTML files. It can use a combination of the two. Script builds HTML code HTML ready to send Server runs script [ ASP / PHP / Ruby ] Script HTML Code How Scripting Languages Work
  • 5. What Are Scripts? ๏‚š A new style of programming language different from system programming languages ๏‚š It does not matter what scripting language a website uses because there are no compatibility issues with clientsโ€™ web browsers. ๏‚š Designed as glue language or system integration language ๏‚š A single statement can execute huge number of machine instructions ๏‚š Can create dynamic web pages ๏‚š Change based on user input ๏‚š The client only ever sees the final HTML generated by the script and not the script itself. ๏‚š Scripts often finish running in several milliseconds. Most web servers can run many scripts simultaneously with a minimal performance hit.
  • 6. Two Types ๏‚š Server-side Scripting Language ๏‚š 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 ๏‚š Client-side Scripting Language ๏‚š 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 e.g. different menu styles, graphic displays or dynamic advertisements
  • 7. I n t e r n e t 1. Client requests page 2. Web server sends the HTML file to the client Web Server Client Machine With Web Browser โ€ข A simple website is made up of one or more static HTML files. This means the page content does not change. โ€ข The only way to update a page is for the author to edit the file. โ€ข This is fine for small websites or those that require little updating. โ€ข Static pages will not work for websites that need to deliver lots of custom and up-to- date content: e-commerce, auctions, blogs, search engines, online banking Static Web Pages
  • 8. โ€ข The facebook homepage could be considered static because it has a fixed layout and content. It does not change. โ€ข After Login results page however is dynamic. This means its content can be changed. โ€ข The only practical way to create this page is by using a script โ€ข The user never sees the work a script does, only the end result it sends back to their browser. DynamicWebPageStaticWebPage Dynamic Web Pages
  • 9. Perl, Python, Ruby ๏‚š Perl ๏‚š Found on all Windows and Linux servers ๏‚š Can handle text manipulation tasks ๏‚š Excellent web scripting language ๏‚š high-traffic websites that use Perl extensively include Priceline.com, Craigs List, IMDB ๏‚š Python ๏‚š Can be used as a script or a programming language ๏‚š OOP language with a lot of features which support of web applications as well as software programs ๏‚š Industrial Light & Magic: "The Phantom Menace", "The Mummy Returns" ๏‚š Walt Disney Feature Animation: uses scripts in their animation production system. ๏‚š Shopzilla: configuration management and deployment, automated testing and internal tool development.
  • 10. Perl Python, Ruby ๏‚š Ruby ๏‚š Various blogs, data processing applications ๏‚š Twitter, Shopify, Groupon, HUlu ๏‚š Ruby, Perl, Python, etc., are all open source ๏‚š Rely on volunteers to ๏‚š Write documentation ๏‚š Write test cases ๏‚š Maintain the systems ๏‚š Port to new platforms ๏‚š Fix bugs ๏‚š Implement libraries ๏‚š Implement new features
  • 11. ASP-PHP ๏‚š Active Server Pages (ASP) ๏‚š Server side scripting language ๏‚š Developed by Microsoft ๏‚š Good at connecting to Microsoft databases ๏‚š Runs only on Microsoft servers ๏‚š Microsoft.com, GoDaddy, Skype, NYTimes.com ๏‚š PHP (Hypertext Pre-Processor) ๏‚š Especially good at connecting to MySQL ๏‚š Generate Dynamic content and good User Interface ๏‚š Server side execution ๏‚šFacebook, Wikipedia, Yahoo, Photo-bucket, & WordPress
  • 12. JavaScript ๏‚š JavaScript ๏‚š Java and JavaScript are two completely different languages in both concept and design ๏‚š Client-side & server-side scripting language ๏‚š Enhance dynamics and interactive features of a web page ๏‚š Allows one to perform calculations, write interactive games, add special effects, customize graphic selections, create security passwords ๏‚š used in millions of web pages ๏‚što improve the design ๏‚što validate forms ๏‚što detect browsers ๏‚što create cookies
  • 13. JavaScript and HTML page <html> <body> <script type=โ€œtext/javascriptโ€> document.write(โ€œHello World!โ€); </script> </body> </html> This code produce the output on an HTML page: Hello World! Tells where the JavaScript ends Tells where the JavaScript starts Commands for writing output to a page
  • 14. Conclusion ๏‚š Scripting languages make the web development work ๏‚š Easier ๏‚š Faster ๏‚š Best utilization of resources ๏‚š http://www.w3schools.com/html/html_scripts.asp