SlideShare ist ein Scribd-Unternehmen logo
1 von 36
BY-Teach4u.in
Outline
Overview of Scripting Languages
Different Scripting Languages
JavaScript (A Client-side Scripting Language)
 ASP.NET (A Server-side Scripting Language)
Conclusion
Scripting Language
A new style of programming language different
from system programming languages
Designed as glue language or system integration
language
A single statement can execute huge number of
machine instructions
Are normally ‘typeless’
Build complex algorithms and data structures..
Can create dynamic web pages
 Change based on user input
Types of Scripting Languages
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
Different Scripting Languages
Active Server Pages (ASP)
Server side scripting language
Developed by Microsoft
Good at connecting to Microsoft databases
Runs only on Microsoft servers
Perl
Old UNIX language
Found on all Windows and Linux servers
Can handle text manipulation tasks
Excellent web scripting language
Different Scripting Languages
PHP (Hypertext Pre-Processor)
Especially good at connecting to MySQL
Very popular language
Runs on UNIX and Windows
HTML-embedded scripting language
Syntax looks like C, JAVA, and PERL
Generate Dynamic content and good User Interface
Server side execution
JSP (Java Server Pages)
Developed by Sun
Uses Java
Provide server-specific framework like Microsoft’s ASP
Different Scripting Languages
CGI (Common Gateway Interface)
Server-side solution
Needs to launch separate instance of application for each web
request
Allows direct interaction with users
ASP.NET
Server-side technology to create faster, reliable and dynamic web
pages
Supports .NET framework languages (C#, VB.NET, JScript.NET)
Provides flexibility to designers and developers to work separately
Different Scripting Languages
VBScript
Microsoft’s scripting language
Client side Scripting language
Very easy to learn
Includes the functionality of Visual Basic
JavaScript
Client-side Scripting language
Easy to use programming language
Enhance dynamics and interactive features of a web page
Allows to perform calculation, write interactive games, add special
effects, customize graphic selections, create security passwords
JavaScript
A Client-side Scripting Language
JavaScript
JavaScript is designed
to add interactivity to HTML pages
JavaScript
consists of lines of interpretable computer code
gives HTML designers a programming tool
is usually embedded directly into HTML pages.
allows to put dynamic text into an HTML page
Java and JavaScript are two completely different
languages in both concept and design
JavaScript’s official name is ECMAScript.
JavaScriptJavaScript is used in millions of web pages
 to improve the design
 to validate forms
 to detect browsers
 to create cookies
JavaScript can react to events and can be used to validate data and
to create cookies
Is the most popular scripting language in all major browsers e.g.
 Internet Explorer
 Mozilla
 Firefox
 Netscape
 Opera
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
JavaScript and HTML page
<html>
<head>
<script src="xyz.js"> </script>
</head>
<body>
</body>
</html>
A separate file
Statements and Comments
JavaScript statements
are codes to be executed by the browser
tells the browser what to do
commands to the browser
add semicolons at the end
can be grouped together into blocks using curly
brackets
try…catch statement allows to test a block of code for
errors
JavaScript comments make the code more
readable
Single line comments start with //
Multi line comments start with /* and end with */
JavaScript Variables
JavaScript Variables
are containers for storing information e.g. x=15; length=60.10;
hold values or expressions
can hold a text value like in name=“multimedia”
var statement can declare JavaScript variables: var x; var
name;
Variable names
are case sensitive i.e. “myVar” is not the same as “myvar”
must begin with a letter or the underscore character
JavaScript Operators
 Arithmetic Operators:
 perform arithmetic operations between the values of the variables
 Addition (+) , Subtraction (-),
 Multiplication (*), Division (/), Modulus (%),
 Increment (+ +), Decrement (- -)
 Assignment Operators:
 assign values to variables
 =, + =, - =, * =, / =, % =
 Comparison Operators:
 determines equality or difference between variables or values
 Equal to (= =), Exactly equal to (= = =),
 Not equal (!=), Greater than (>), Less than ( <),
 Greater than or equal to (>=), Less than or equal to (<=)
 Logical Operators:
 impose the logic between variables or values
 AND (&&), OR ( | | ), NOT ( ! )
 Conditional Operator:
 assign value to a variable based on some conditions
 ?:
JavaScript Conditional Statements
if statement - to execute some code only if a
specified condition is true
if...else statement - to execute some code if the
condition is true and another code if the
condition is false
if...else if....else statement - to select one of
many blocks of code to be executed
switch statement - to select one of many blocks
of code to be executed
JavaScript Looping
JavaScript looping
Executes the same block of codes
Executes a specified number of times
Execution can be controlled by some control logic
uses for, while, do….while statements
uses for…in to iterate through the elements of an array
Break breaks the loop and follows the code after
the loop
Continue breaks the loop and continues with
next value.
JavaScript Functions and Events
JavaScript Functions
Can be called with the function name
Can also be executed by an event
Can have parameters and return statement
Events
are actions that can be detected e.g. OnMouseOver,
onMouseOut etc.
are normally associated with functions
<input type="text" size="30" id="email"
onChange="checkEmail()">
JavaScript: Events
Javascript actions may be triggered from events, e.g.
changes on form fields or a submit button being clicked:
onfocus = Form field gets focus (validation)
onblur= Form field looses focus (validation)
onchange= Content of a field changes (validation)
onselect= Text is selected
onmouseover= Mouse moves over a link (animated buttons)
onmouseout= Mouse moves out of a link (animated …)
onclick= Mouse clicks an object
onload= Page is finished loading (initial actions, info,)
onSubmit= Submit button is clicked (validation etc.)
JavaScript Popup boxes
JavaScript can create:
Alert box: to make sure information comes through to
the user.
Confirm box: to verify or accept something
Prompt box: the user to input a value before entering a
page
JavaScript and OOP
JavaScript
 is an Object Oriented Programming language
 contains built-in JavaScript objects
 String
 Date
 Array
 Boolean
 Math
 RegExp
 Window
 Navigator
 Screen
 Location
 History etc.
 also allows to define new objects
 objects contain Properties and Methods
 objects can be used as variable types
JavaScript: DOM
To access the data in the HTML page
needs some data structures to access the HTML page.
Many browser implement an interface to what is
called the Document Object Model (DOM)
It allows to output the document in the changed form
to the browser.
DOM is a representation of the document in an
object form, accessible from JavaScript programs
JavaScript HTML DOM Objects
DOM Objects
Document Represents the entire HTML document and can be
used to access all elements in a page
Anchor Represents an <a> element
Area Represents an <area> element inside an image-map
Base Represents a <base> element
Body Represents the <body> element
Button Represents a <button> element
Event Represents the state of an event
Form Represents a <form> element
Frame Represents a <frame> element
Frameset Represents a <frameset> element
Iframe Represents an <iframe> element
JavaScript HTML DOM Objects DOM Objects
 Image Represents an <img> element
 Input button Represents a button in an HTML form
 Input checkbox Represents a checkbox in an HTML form
 Input file Represents a fileupload in an HTML form
 Input hidden Represents a hidden field in an HTML form
 Input password Represents a password field in an HTML form
 Input radio Represents a radio button in an HTML form
 Input reset Represents a reset button in an HTML form
 Input submit Represents a submit button in an HTML form
 Input text Represents a text-input field in an HTML form
 Link Represents a <link> element
 Meta Represents a <meta> element
 Option Represents an <option> element
 Select Represents a selection list in an HTML form
 Style Represents an individual style statement
 Table Represents a <table> element
 TableData Represents a <td> element
 TableRow Represents a <tr> element
 Textarea Represents a <textarea> element
Dynamic JavaScript
JavaScript can be used to directly change the DOM model
and thereby to change the document.
The DOM model can also be used to manage XML content
(and, for istance, to generate HTML from it).
It can also use XMLHttpRequest objects to request data
from the server without loading the whole page again.
This provides possibilities to load new content to the page
without re-loading the page.
Using this technology in combination of DOM and the basic
HTML/CSS (or XHTML/CSS) is sometimes called Ajax.
ASP.NET
A Server-side Scripting Language
ASP.NET
ASP.NET
Is the latest version of Microsoft’s Active Server Pages
(ASP) technology
Is a part of the Microsoft .NET framework
Is a powerful tool for web development
Is a program that runs inside IIS (Internet Information
Services)
Can contain HTML, XML and other scripts
File extension is “.aspx”
How does ASP.NET Work?
A browser requests an HTML file, the server
returns the file
A browser requests an ASP.NET file, IIS passes
the request to the ASP.NET engine on the server
ASP.NET engine reads the file, line by line, and
executes the scripts in the file
ASP.NET file is returned to the browser as plain
HTML
How does ASP.NET Work?
ASP.NET - Server Controls
Server controls are tags that are understood by
the server
ASP.NET has solved the "spaghetti-code"
problem of Classic ASP with Server Controls
There are three kinds of server controls:
HTML Server Controls - Traditional HTML tags
Web Server Controls - New ASP.NET tags
Validation Server Controls - For input validation
ASP.NET Features
 ASP.NET Event Handler
 is a subroutine that executes code for a given event
 Page_Load event is triggered when a page loads, and ASP.NET will
automatically call the subroutine Page_Load, and execute the code inside it
 ASP.NET Web Forms
 All server controls must appear within a <form> tag, and the <form> tag must
contain the runat="server" attribute. The runat="server" attribute indicates
that the form should be processed on the server.
 ASP.NET Data Binding
 The following controls are list controls which support data binding:
 asp:RadioButtonList
 asp:CheckBoxList
 asp:DropDownList
 asp:Listbox
 ADO.NET is also a part of the .NET Framework. ADO.NET is used to
handle data access. With ADO.NET you can work with databases.
ASP.NET Features
Master Pages, Themes
Standard controls for navigation
Standard controls for security
Roles, personalization, and internationalization services
Improved and simplified data access controls
Full support for XML standards like, XHTML, XML, and
WSDL
Improved compilation and deployment (installation)
Improved site management
New and improved development tools
Conclusion
Scripting languages make the web development
work
Easier
Faster
Best utilization of resources
It is the programmer’s choice which one will suite
the best considering
Knowledge
Practice
Resouce
ReferencesDavid Flannagan, JavaScript: The Definitive Guide,
O'Reilly & Associates.
Lisa Cozzens, Amanda Kudler, and Izel Sulam, A Bridge
to Computer Science: JavaScript Tutorial,
http://www.cs.brown.edu/courses/bridge/1998/res/javasc
ript/javascript-tutorial.html
Dominic Selly, Andrew Troelsen, and Tom Barnaby,
Expert ASP.Net: Advanced Application Design, Appress.
Emily Vander Veer, JavaScript for Dummies Quick
Reference, IDG Books.
John K. Ousterhout, Scripting: Higher Level
Programming for the 21st Century,
http://www.tcl.tk/doc/scripting.html
Thank you

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Gil Fink
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to JavascriptAmit Tyagi
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web TechnologyAashish Jain
 
Web Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptWeb Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptEdureka!
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScriptAndres Baravalle
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net frameworkThen Murugeshwari
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)AakankshaR
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingNeeru Mittal
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpageAishwarya Pallai
 

Was ist angesagt? (20)

Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Javascript
JavascriptJavascript
Javascript
 
Php.ppt
Php.pptPhp.ppt
Php.ppt
 
Java script
Java scriptJava script
Java script
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web Technology
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Javascript
JavascriptJavascript
Javascript
 
Web Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptWeb Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScript
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Methods in Java
Methods in JavaMethods in Java
Methods in Java
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net framework
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpage
 
Java swing
Java swingJava swing
Java swing
 

Andere mochten auch (20)

Scripting languages
Scripting languagesScripting languages
Scripting languages
 
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
 
Server Side Programming
Server Side Programming Server Side Programming
Server Side Programming
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
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
 
Client & server side scripting
Client & server side scriptingClient & server side scripting
Client & server side scripting
 
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
 
06 Javascript
06 Javascript06 Javascript
06 Javascript
 
Jscript part1
Jscript part1Jscript part1
Jscript part1
 
Cgi
CgiCgi
Cgi
 
C5 Javascript
C5 JavascriptC5 Javascript
C5 Javascript
 
JavaScript, VBScript, AJAX, CGI
JavaScript, VBScript, AJAX, CGIJavaScript, VBScript, AJAX, CGI
JavaScript, VBScript, AJAX, CGI
 
javascript examples
javascript examplesjavascript examples
javascript examples
 
Javascript Tlabs
Javascript TlabsJavascript Tlabs
Javascript Tlabs
 
Events
EventsEvents
Events
 
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
 
Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)Dotnet difference questions and answers compiled- 1(updated-2)
Dotnet difference questions and answers compiled- 1(updated-2)
 
Dom
Dom Dom
Dom
 

Ähnlich wie Scripting languages

Advisor Jumpstart: JavaScript
Advisor Jumpstart: JavaScriptAdvisor Jumpstart: JavaScript
Advisor Jumpstart: JavaScriptdominion
 
Client side scripting using Javascript
Client side scripting using JavascriptClient side scripting using Javascript
Client side scripting using JavascriptBansari Shah
 
Basic Java script handouts for students
Basic Java script handouts for students Basic Java script handouts for students
Basic Java script handouts for students shafiq sangi
 
Introduction to Javascript programming
Introduction to Javascript programmingIntroduction to Javascript programming
Introduction to Javascript programmingFulvio Corno
 
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPTHSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPTAAFREEN SHAIKH
 
Basics of Java Script (JS)
Basics of Java Script (JS)Basics of Java Script (JS)
Basics of Java Script (JS)Ajay Khatri
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RPaul Richards
 
Introductionto asp net-ppt
Introductionto asp net-pptIntroductionto asp net-ppt
Introductionto asp net-ppttmasyam
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascriptambuj pathak
 
That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)
That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)
That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)Lucas Jellema
 
JavaScript with Syntax & Implementation
JavaScript with Syntax & ImplementationJavaScript with Syntax & Implementation
JavaScript with Syntax & ImplementationSoumen Santra
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptWalid Ashraf
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
1472251766_demojavascriptppt (1).ppt
1472251766_demojavascriptppt (1).ppt1472251766_demojavascriptppt (1).ppt
1472251766_demojavascriptppt (1).pptictlab3
 

Ähnlich wie Scripting languages (20)

Advisor Jumpstart: JavaScript
Advisor Jumpstart: JavaScriptAdvisor Jumpstart: JavaScript
Advisor Jumpstart: JavaScript
 
Client side scripting using Javascript
Client side scripting using JavascriptClient side scripting using Javascript
Client side scripting using Javascript
 
Javascript
JavascriptJavascript
Javascript
 
Basic Java script handouts for students
Basic Java script handouts for students Basic Java script handouts for students
Basic Java script handouts for students
 
Web programming
Web programmingWeb programming
Web programming
 
Introduction to Javascript programming
Introduction to Javascript programmingIntroduction to Javascript programming
Introduction to Javascript programming
 
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPTHSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
 
J Query Public
J Query PublicJ Query Public
J Query Public
 
Basics of Java Script (JS)
Basics of Java Script (JS)Basics of Java Script (JS)
Basics of Java Script (JS)
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in R
 
Introductionto asp net-ppt
Introductionto asp net-pptIntroductionto asp net-ppt
Introductionto asp net-ppt
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Atlas Php
Atlas PhpAtlas Php
Atlas Php
 
That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)
That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)
That's Rich! Putting a smile on ADF Faces (ODTUG Kaleidoscope 2009)
 
JavaScript with Syntax & Implementation
JavaScript with Syntax & ImplementationJavaScript with Syntax & Implementation
JavaScript with Syntax & Implementation
 
Html JavaScript and CSS
Html JavaScript and CSSHtml JavaScript and CSS
Html JavaScript and CSS
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
 
Html css
Html cssHtml css
Html css
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
1472251766_demojavascriptppt (1).ppt
1472251766_demojavascriptppt (1).ppt1472251766_demojavascriptppt (1).ppt
1472251766_demojavascriptppt (1).ppt
 

Mehr von teach4uin

Master pages
Master pagesMaster pages
Master pagesteach4uin
 
.Net framework
.Net framework.Net framework
.Net frameworkteach4uin
 
State management
State managementState management
State managementteach4uin
 
security configuration
security configurationsecurity configuration
security configurationteach4uin
 
static dynamic html tags
 static dynamic html tags static dynamic html tags
static dynamic html tagsteach4uin
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tagsteach4uin
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentationteach4uin
 
.Net overview
.Net overview.Net overview
.Net overviewteach4uin
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lessonteach4uin
 
storage clas
storage classtorage clas
storage clasteach4uin
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrolsteach4uin
 

Mehr von teach4uin (20)

Controls
ControlsControls
Controls
 
validation
validationvalidation
validation
 
validation
validationvalidation
validation
 
Master pages
Master pagesMaster pages
Master pages
 
.Net framework
.Net framework.Net framework
.Net framework
 
Css1
Css1Css1
Css1
 
Code model
Code modelCode model
Code model
 
Asp db
Asp dbAsp db
Asp db
 
State management
State managementState management
State management
 
security configuration
security configurationsecurity configuration
security configuration
 
static dynamic html tags
 static dynamic html tags static dynamic html tags
static dynamic html tags
 
static dynamic html tags
static dynamic html tagsstatic dynamic html tags
static dynamic html tags
 
New microsoft office power point presentation
New microsoft office power point presentationNew microsoft office power point presentation
New microsoft office power point presentation
 
.Net overview
.Net overview.Net overview
.Net overview
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lesson
 
enums
enumsenums
enums
 
memory
memorymemory
memory
 
array
arrayarray
array
 
storage clas
storage classtorage clas
storage clas
 
Cprogrammingprogramcontrols
CprogrammingprogramcontrolsCprogrammingprogramcontrols
Cprogrammingprogramcontrols
 

Kürzlich hochgeladen

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 

Kürzlich hochgeladen (20)

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 

Scripting languages

  • 2. Outline Overview of Scripting Languages Different Scripting Languages JavaScript (A Client-side Scripting Language)  ASP.NET (A Server-side Scripting Language) Conclusion
  • 3. Scripting Language A new style of programming language different from system programming languages Designed as glue language or system integration language A single statement can execute huge number of machine instructions Are normally ‘typeless’ Build complex algorithms and data structures.. Can create dynamic web pages  Change based on user input
  • 4. Types of Scripting Languages 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
  • 5. Different Scripting Languages Active Server Pages (ASP) Server side scripting language Developed by Microsoft Good at connecting to Microsoft databases Runs only on Microsoft servers Perl Old UNIX language Found on all Windows and Linux servers Can handle text manipulation tasks Excellent web scripting language
  • 6. Different Scripting Languages PHP (Hypertext Pre-Processor) Especially good at connecting to MySQL Very popular language Runs on UNIX and Windows HTML-embedded scripting language Syntax looks like C, JAVA, and PERL Generate Dynamic content and good User Interface Server side execution JSP (Java Server Pages) Developed by Sun Uses Java Provide server-specific framework like Microsoft’s ASP
  • 7. Different Scripting Languages CGI (Common Gateway Interface) Server-side solution Needs to launch separate instance of application for each web request Allows direct interaction with users ASP.NET Server-side technology to create faster, reliable and dynamic web pages Supports .NET framework languages (C#, VB.NET, JScript.NET) Provides flexibility to designers and developers to work separately
  • 8. Different Scripting Languages VBScript Microsoft’s scripting language Client side Scripting language Very easy to learn Includes the functionality of Visual Basic JavaScript Client-side Scripting language Easy to use programming language Enhance dynamics and interactive features of a web page Allows to perform calculation, write interactive games, add special effects, customize graphic selections, create security passwords
  • 10. JavaScript JavaScript is designed to add interactivity to HTML pages JavaScript consists of lines of interpretable computer code gives HTML designers a programming tool is usually embedded directly into HTML pages. allows to put dynamic text into an HTML page Java and JavaScript are two completely different languages in both concept and design JavaScript’s official name is ECMAScript.
  • 11. JavaScriptJavaScript is used in millions of web pages  to improve the design  to validate forms  to detect browsers  to create cookies JavaScript can react to events and can be used to validate data and to create cookies Is the most popular scripting language in all major browsers e.g.  Internet Explorer  Mozilla  Firefox  Netscape  Opera
  • 12. 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
  • 13. JavaScript and HTML page <html> <head> <script src="xyz.js"> </script> </head> <body> </body> </html> A separate file
  • 14. Statements and Comments JavaScript statements are codes to be executed by the browser tells the browser what to do commands to the browser add semicolons at the end can be grouped together into blocks using curly brackets try…catch statement allows to test a block of code for errors JavaScript comments make the code more readable Single line comments start with // Multi line comments start with /* and end with */
  • 15. JavaScript Variables JavaScript Variables are containers for storing information e.g. x=15; length=60.10; hold values or expressions can hold a text value like in name=“multimedia” var statement can declare JavaScript variables: var x; var name; Variable names are case sensitive i.e. “myVar” is not the same as “myvar” must begin with a letter or the underscore character
  • 16. JavaScript Operators  Arithmetic Operators:  perform arithmetic operations between the values of the variables  Addition (+) , Subtraction (-),  Multiplication (*), Division (/), Modulus (%),  Increment (+ +), Decrement (- -)  Assignment Operators:  assign values to variables  =, + =, - =, * =, / =, % =  Comparison Operators:  determines equality or difference between variables or values  Equal to (= =), Exactly equal to (= = =),  Not equal (!=), Greater than (>), Less than ( <),  Greater than or equal to (>=), Less than or equal to (<=)  Logical Operators:  impose the logic between variables or values  AND (&&), OR ( | | ), NOT ( ! )  Conditional Operator:  assign value to a variable based on some conditions  ?:
  • 17. JavaScript Conditional Statements if statement - to execute some code only if a specified condition is true if...else statement - to execute some code if the condition is true and another code if the condition is false if...else if....else statement - to select one of many blocks of code to be executed switch statement - to select one of many blocks of code to be executed
  • 18. JavaScript Looping JavaScript looping Executes the same block of codes Executes a specified number of times Execution can be controlled by some control logic uses for, while, do….while statements uses for…in to iterate through the elements of an array Break breaks the loop and follows the code after the loop Continue breaks the loop and continues with next value.
  • 19. JavaScript Functions and Events JavaScript Functions Can be called with the function name Can also be executed by an event Can have parameters and return statement Events are actions that can be detected e.g. OnMouseOver, onMouseOut etc. are normally associated with functions <input type="text" size="30" id="email" onChange="checkEmail()">
  • 20. JavaScript: Events Javascript actions may be triggered from events, e.g. changes on form fields or a submit button being clicked: onfocus = Form field gets focus (validation) onblur= Form field looses focus (validation) onchange= Content of a field changes (validation) onselect= Text is selected onmouseover= Mouse moves over a link (animated buttons) onmouseout= Mouse moves out of a link (animated …) onclick= Mouse clicks an object onload= Page is finished loading (initial actions, info,) onSubmit= Submit button is clicked (validation etc.)
  • 21. JavaScript Popup boxes JavaScript can create: Alert box: to make sure information comes through to the user. Confirm box: to verify or accept something Prompt box: the user to input a value before entering a page
  • 22. JavaScript and OOP JavaScript  is an Object Oriented Programming language  contains built-in JavaScript objects  String  Date  Array  Boolean  Math  RegExp  Window  Navigator  Screen  Location  History etc.  also allows to define new objects  objects contain Properties and Methods  objects can be used as variable types
  • 23. JavaScript: DOM To access the data in the HTML page needs some data structures to access the HTML page. Many browser implement an interface to what is called the Document Object Model (DOM) It allows to output the document in the changed form to the browser. DOM is a representation of the document in an object form, accessible from JavaScript programs
  • 24. JavaScript HTML DOM Objects DOM Objects Document Represents the entire HTML document and can be used to access all elements in a page Anchor Represents an <a> element Area Represents an <area> element inside an image-map Base Represents a <base> element Body Represents the <body> element Button Represents a <button> element Event Represents the state of an event Form Represents a <form> element Frame Represents a <frame> element Frameset Represents a <frameset> element Iframe Represents an <iframe> element
  • 25. JavaScript HTML DOM Objects DOM Objects  Image Represents an <img> element  Input button Represents a button in an HTML form  Input checkbox Represents a checkbox in an HTML form  Input file Represents a fileupload in an HTML form  Input hidden Represents a hidden field in an HTML form  Input password Represents a password field in an HTML form  Input radio Represents a radio button in an HTML form  Input reset Represents a reset button in an HTML form  Input submit Represents a submit button in an HTML form  Input text Represents a text-input field in an HTML form  Link Represents a <link> element  Meta Represents a <meta> element  Option Represents an <option> element  Select Represents a selection list in an HTML form  Style Represents an individual style statement  Table Represents a <table> element  TableData Represents a <td> element  TableRow Represents a <tr> element  Textarea Represents a <textarea> element
  • 26. Dynamic JavaScript JavaScript can be used to directly change the DOM model and thereby to change the document. The DOM model can also be used to manage XML content (and, for istance, to generate HTML from it). It can also use XMLHttpRequest objects to request data from the server without loading the whole page again. This provides possibilities to load new content to the page without re-loading the page. Using this technology in combination of DOM and the basic HTML/CSS (or XHTML/CSS) is sometimes called Ajax.
  • 28. ASP.NET ASP.NET Is the latest version of Microsoft’s Active Server Pages (ASP) technology Is a part of the Microsoft .NET framework Is a powerful tool for web development Is a program that runs inside IIS (Internet Information Services) Can contain HTML, XML and other scripts File extension is “.aspx”
  • 29. How does ASP.NET Work? A browser requests an HTML file, the server returns the file A browser requests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server ASP.NET engine reads the file, line by line, and executes the scripts in the file ASP.NET file is returned to the browser as plain HTML
  • 31. ASP.NET - Server Controls Server controls are tags that are understood by the server ASP.NET has solved the "spaghetti-code" problem of Classic ASP with Server Controls There are three kinds of server controls: HTML Server Controls - Traditional HTML tags Web Server Controls - New ASP.NET tags Validation Server Controls - For input validation
  • 32. ASP.NET Features  ASP.NET Event Handler  is a subroutine that executes code for a given event  Page_Load event is triggered when a page loads, and ASP.NET will automatically call the subroutine Page_Load, and execute the code inside it  ASP.NET Web Forms  All server controls must appear within a <form> tag, and the <form> tag must contain the runat="server" attribute. The runat="server" attribute indicates that the form should be processed on the server.  ASP.NET Data Binding  The following controls are list controls which support data binding:  asp:RadioButtonList  asp:CheckBoxList  asp:DropDownList  asp:Listbox  ADO.NET is also a part of the .NET Framework. ADO.NET is used to handle data access. With ADO.NET you can work with databases.
  • 33. ASP.NET Features Master Pages, Themes Standard controls for navigation Standard controls for security Roles, personalization, and internationalization services Improved and simplified data access controls Full support for XML standards like, XHTML, XML, and WSDL Improved compilation and deployment (installation) Improved site management New and improved development tools
  • 34. Conclusion Scripting languages make the web development work Easier Faster Best utilization of resources It is the programmer’s choice which one will suite the best considering Knowledge Practice Resouce
  • 35. ReferencesDavid Flannagan, JavaScript: The Definitive Guide, O'Reilly & Associates. Lisa Cozzens, Amanda Kudler, and Izel Sulam, A Bridge to Computer Science: JavaScript Tutorial, http://www.cs.brown.edu/courses/bridge/1998/res/javasc ript/javascript-tutorial.html Dominic Selly, Andrew Troelsen, and Tom Barnaby, Expert ASP.Net: Advanced Application Design, Appress. Emily Vander Veer, JavaScript for Dummies Quick Reference, IDG Books. John K. Ousterhout, Scripting: Higher Level Programming for the 21st Century, http://www.tcl.tk/doc/scripting.html