SlideShare a Scribd company logo
Rajesh Kumar
AJAX stands for Asynchronous JavaScript
and XML.
AJAX is a new technique for creating better,
faster, and more interactive web applications
with the help of XML, HTML, CSS, and Java
Script.
Allows web pages or parts of them to be
updated asynchronously .
 Internet Explorer introduces the concept of IFrame element in 1996.
 In the year 1998, Microsoft introduces another technique, called ‘Microsoft’s
Remote Scripting’ as a replacement to the older techniques.
 A year later, in 1999, Microsoft introduces the XMLHttpRequest object, an
ActiveX control, in IE 5.
 The term AJAX is coined on February 18, 2005, by Jesse James Garret in
a short essay published a few days after Google released its Maps
application.
 Finally, in the year 2006, the W3C announces the release of the first draft
which includes the specification for the object (XHR) and makes it an official
web standard.
• HTML & CSS - for presenting.
• JavaScript - for local processing.
• Document Object Model (DOM) – to access data
inside the page or to access elements of an XML file
on the server.
• XMLHttpRequest object – to read/send data to the
server asynchronously.
 AJAX enables a much better user experience
for Web sites and applications.
 Portable across browsers
 reduce software maintenance costs and
increase its reach. You can use AJAX to load
specific portions of a page that need to be
changed.
 It further reduces network traffic.
 Google Maps, A user can drag an entire map by
using the mouse.
 Google Suggest, As you type, Google offers
suggestions. Use the arrow keys to navigate the
results.
 Gmail Gmail is a webmail built on the idea that
emails can be more intuitive, efficient, and
useful.
 Facebook,Orkut.
All the available browsers cannot support AJAX.
Here is a list of major browsers that support
AJAX.
 Mozilla Firefox 1.0 and above.
 Netscape version 7.1 and above.
 Apple Safari 1.2 and above.
 Microsoft Internet Explorer 5 and above.
 Opera 7.6 and above.
1. A client event occurs
2. An XMLHttpRequest object is
created
3. The XMLHttpRequest object is
configured
4. The XMLHttpRequest object
makes an async. Request
5. The ValidateServlet returns an
XML document containing the
result
6. The XMLHttpRequest object
calls the callback() function and
processes the result
7. The HTML DOM is updated
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}
}
</script>
Script creates variable
Warning for user if all
browsers fail
IE can use 2 types
of ActiveXObjects
 The XMLHttpRequest object is the key to AJAX.
It has been available ever since Internet Explorer
5.5 was released in July 2000, but was not fully
discovered until AJAX and Web 2.0 in 2005
became popular.
 XMLHttpRequest (XHR) is an API that can be
used by JavaScript, web browser scripting
languages to transfer and manipulate XML data
to and from a webserver using HTTP,
establishing an independent connection channel
between a webpage's Client-Side and Server-
Side
 abort()
 getAllResponseHeaders()
 getResponseHeader( headerName )
 open( method, URL )
 open( method, URL, async )
 open( method, URL, async, userName )
 open( method, URL, async, userName,
password )
 send( content )
 setRequestHeader( label, value )
 Onreadystatechange
 readyState
 responseXML
 Status
 statusText
 Cross-Browser and Cross-Platform Compatibility.
 Ajax application can be build with open standards
technologies, is not tied to proprietary software.
 Lower cost of development.
 The code can be optimized and separated.
 More rich interaction with the user, by
example:autocomplete, drag and drop, transparency,
shading, Z-ordering, etc.
 More speed, and less wait time for screen updated.
 Widespread adoption of Ajax by industry leaders.
 Integration with others proprietaries technologies.
 Same security problems as in classic Web
applications.
Think of different way in the development
and design.
The use of frameworks can generate
complexity.
More interaction through JavaScript.
More code for old browser.
Special code for some functions of Internet
Explorer.
Server Side
AJAX-based Web applications use the same
server side securityschemes of regular Web
applications.
Client Side
Downloaded JavaScript code is constrained by
sand-box security model and can be relaxed for
signed JavaScript.
 AJAX extends the usefulness of web apps
 Saves entire pages reloading
 Gives greater transparency to users
 Data loads ‘in the background’
 Uses existing technologies
 Is becoming very popular
1. http://www.w3schools.com/ajax/
2. http://www.tutorialspoint.com/ajax/
3. http://net.tutsplus.com/
4. https://developer.mozilla.org/en/XMLHttpReque
st
5. SAMS Teach Yourself Ajax in 10 Minutes, Phil
Ballard, p. 85
6. JavaScript & AJAX, 6th Edition, Tom Negrino
and Dori Smith, ch.15
Thank You!

More Related Content

What's hot

An Introduction to Ajax Programming
An Introduction to Ajax ProgrammingAn Introduction to Ajax Programming
An Introduction to Ajax Programming
hchen1
 
Using Ajax In Domino Web Applications
Using Ajax In Domino Web ApplicationsUsing Ajax In Domino Web Applications
Using Ajax In Domino Web Applications
dominion
 

What's hot (20)

Ajax Ppt 1
Ajax Ppt 1Ajax Ppt 1
Ajax Ppt 1
 
Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)Asynchronous JavaScript & XML (AJAX)
Asynchronous JavaScript & XML (AJAX)
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 
Ajax
AjaxAjax
Ajax
 
Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentation
 
Beyond HTML: Tools for Building Web 2.0 Apps
Beyond HTML: Tools for Building Web 2.0 AppsBeyond HTML: Tools for Building Web 2.0 Apps
Beyond HTML: Tools for Building Web 2.0 Apps
 
Ajax Ppt
Ajax PptAjax Ppt
Ajax Ppt
 
Ajax
AjaxAjax
Ajax
 
Ajax ppt - 32 slides
Ajax ppt - 32 slidesAjax ppt - 32 slides
Ajax ppt - 32 slides
 
An Introduction to Ajax Programming
An Introduction to Ajax ProgrammingAn Introduction to Ajax Programming
An Introduction to Ajax Programming
 
Architecture in Ajax Applications
Architecture in Ajax ApplicationsArchitecture in Ajax Applications
Architecture in Ajax Applications
 
Ajax part i
Ajax part iAjax part i
Ajax part i
 
Ajax
AjaxAjax
Ajax
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 
What is Ajax technology?
What is Ajax technology?What is Ajax technology?
What is Ajax technology?
 
Ajax.ppt
Ajax.pptAjax.ppt
Ajax.ppt
 
Ajax presentation
Ajax presentationAjax presentation
Ajax presentation
 
PHP - Introduction to PHP AJAX
PHP -  Introduction to PHP AJAXPHP -  Introduction to PHP AJAX
PHP - Introduction to PHP AJAX
 
AJAX
AJAXAJAX
AJAX
 
Using Ajax In Domino Web Applications
Using Ajax In Domino Web ApplicationsUsing Ajax In Domino Web Applications
Using Ajax In Domino Web Applications
 

Viewers also liked

Viewers also liked (16)

Casia2014 The Pink Panthers
Casia2014  The Pink PanthersCasia2014  The Pink Panthers
Casia2014 The Pink Panthers
 
Catalogo cokicos informatica
Catalogo cokicos informaticaCatalogo cokicos informatica
Catalogo cokicos informatica
 
Casia2014: The Pink Panthers
Casia2014: The Pink PanthersCasia2014: The Pink Panthers
Casia2014: The Pink Panthers
 
Definición de empresa
Definición de empresaDefinición de empresa
Definición de empresa
 
Catalogo cokicos informatica
Catalogo cokicos informaticaCatalogo cokicos informatica
Catalogo cokicos informatica
 
Catalogo cokicos informatica
Catalogo cokicos informaticaCatalogo cokicos informatica
Catalogo cokicos informatica
 
Others ppt
Others pptOthers ppt
Others ppt
 
Tresp slideshare draft 2
Tresp slideshare draft 2Tresp slideshare draft 2
Tresp slideshare draft 2
 
Social media not to be accessed in office
Social media not to be accessed in officeSocial media not to be accessed in office
Social media not to be accessed in office
 
Small Bad Credit 1 Hour Loans @www.nextdayloansforbadcredit.co.uk
Small Bad Credit 1 Hour Loans @www.nextdayloansforbadcredit.co.ukSmall Bad Credit 1 Hour Loans @www.nextdayloansforbadcredit.co.uk
Small Bad Credit 1 Hour Loans @www.nextdayloansforbadcredit.co.uk
 
Presentation for slideshare
Presentation for slidesharePresentation for slideshare
Presentation for slideshare
 
Возможности гомеопатии при лечении и профилактике эпидемий
Возможности гомеопатии при лечении и профилактике эпидемийВозможности гомеопатии при лечении и профилактике эпидемий
Возможности гомеопатии при лечении и профилактике эпидемий
 
современное развитие класической гомеопатии
современное развитие класической гомеопатиисовременное развитие класической гомеопатии
современное развитие класической гомеопатии
 
гомеопатический взгляд на природу хронических заболеваний
гомеопатический взгляд на природу хронических заболеванийгомеопатический взгляд на природу хронических заболеваний
гомеопатический взгляд на природу хронических заболеваний
 
классическая гомеопатия джорджа витулкаса
классическая гомеопатия джорджа витулкасаклассическая гомеопатия джорджа витулкаса
классическая гомеопатия джорджа витулкаса
 
проблема научных исследований в гомеопатии
проблема научных исследований в гомеопатиипроблема научных исследований в гомеопатии
проблема научных исследований в гомеопатии
 

Similar to Ajax

AJAX
AJAXAJAX
AJAX
ARJUN
 
Web 10mca556 syllabs
Web 10mca556 syllabsWeb 10mca556 syllabs
Web 10mca556 syllabs
Ramesh Bindu
 
Ajax: User Experience
Ajax: User ExperienceAjax: User Experience
Ajax: User Experience
petrov
 
Java Script - A New Look
Java Script - A New LookJava Script - A New Look
Java Script - A New Look
rumsan
 

Similar to Ajax (20)

M Ramya
M RamyaM Ramya
M Ramya
 
25250716 seminar-on-ajax text
25250716 seminar-on-ajax text25250716 seminar-on-ajax text
25250716 seminar-on-ajax text
 
Ajax Introduction
Ajax IntroductionAjax Introduction
Ajax Introduction
 
AJAX
AJAXAJAX
AJAX
 
Copy of ajax tutorial
Copy of ajax tutorialCopy of ajax tutorial
Copy of ajax tutorial
 
Web 10mca556 syllabs
Web 10mca556 syllabsWeb 10mca556 syllabs
Web 10mca556 syllabs
 
Ajax: User Experience
Ajax: User ExperienceAjax: User Experience
Ajax: User Experience
 
Ajax
AjaxAjax
Ajax
 
HTML, Javascript and AJAX
HTML, Javascript and AJAXHTML, Javascript and AJAX
HTML, Javascript and AJAX
 
Ajax
AjaxAjax
Ajax
 
Intoduction to Ajax
Intoduction to AjaxIntoduction to Ajax
Intoduction to Ajax
 
Ajax
AjaxAjax
Ajax
 
Asynchronous javascript and xml
Asynchronous javascript and xmlAsynchronous javascript and xml
Asynchronous javascript and xml
 
Ajax assignment help
Ajax assignment helpAjax assignment help
Ajax assignment help
 
Building Applications Using Ajax
Building Applications Using AjaxBuilding Applications Using Ajax
Building Applications Using Ajax
 
CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2CTS Conference Web 2.0 Tutorial Part 2
CTS Conference Web 2.0 Tutorial Part 2
 
Ajax
AjaxAjax
Ajax
 
Java Script - A New Look
Java Script - A New LookJava Script - A New Look
Java Script - A New Look
 
ITI006En-AJAX
ITI006En-AJAXITI006En-AJAX
ITI006En-AJAX
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
 

Recently uploaded

527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf
rajpreetkaur75080
 

Recently uploaded (15)

The Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDFThe Canoga Gardens Development Project. PDF
The Canoga Gardens Development Project. PDF
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdfOracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
Oracle Database Administration I (1Z0-082) Exam Dumps 2024.pdf
 
527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf527598851-ppc-due-to-various-govt-policies.pdf
527598851-ppc-due-to-various-govt-policies.pdf
 
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
Writing Sample 2 -Bridging the Divide: Enhancing Public Engagement in Urban D...
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx123445566544333222333444dxcvbcvcvharsh.pptx
123445566544333222333444dxcvbcvcvharsh.pptx
 
05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking05232024 Joint Meeting - Community Networking
05232024 Joint Meeting - Community Networking
 
Hi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptxHi-Tech Industry 2024-25 Prospective.pptx
Hi-Tech Industry 2024-25 Prospective.pptx
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
Pollinator Ambassador Earth Steward Day Presentation 2024-05-22
 

Ajax

  • 2. AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script. Allows web pages or parts of them to be updated asynchronously .
  • 3.  Internet Explorer introduces the concept of IFrame element in 1996.  In the year 1998, Microsoft introduces another technique, called ‘Microsoft’s Remote Scripting’ as a replacement to the older techniques.  A year later, in 1999, Microsoft introduces the XMLHttpRequest object, an ActiveX control, in IE 5.  The term AJAX is coined on February 18, 2005, by Jesse James Garret in a short essay published a few days after Google released its Maps application.  Finally, in the year 2006, the W3C announces the release of the first draft which includes the specification for the object (XHR) and makes it an official web standard.
  • 4. • HTML & CSS - for presenting. • JavaScript - for local processing. • Document Object Model (DOM) – to access data inside the page or to access elements of an XML file on the server. • XMLHttpRequest object – to read/send data to the server asynchronously.
  • 5.  AJAX enables a much better user experience for Web sites and applications.  Portable across browsers  reduce software maintenance costs and increase its reach. You can use AJAX to load specific portions of a page that need to be changed.  It further reduces network traffic.
  • 6.  Google Maps, A user can drag an entire map by using the mouse.  Google Suggest, As you type, Google offers suggestions. Use the arrow keys to navigate the results.  Gmail Gmail is a webmail built on the idea that emails can be more intuitive, efficient, and useful.  Facebook,Orkut.
  • 7. All the available browsers cannot support AJAX. Here is a list of major browsers that support AJAX.  Mozilla Firefox 1.0 and above.  Netscape version 7.1 and above.  Apple Safari 1.2 and above.  Microsoft Internet Explorer 5 and above.  Opera 7.6 and above.
  • 8.
  • 9.
  • 10. 1. A client event occurs 2. An XMLHttpRequest object is created 3. The XMLHttpRequest object is configured 4. The XMLHttpRequest object makes an async. Request 5. The ValidateServlet returns an XML document containing the result 6. The XMLHttpRequest object calls the callback() function and processes the result 7. The HTML DOM is updated
  • 11. <script type="text/javascript"> function ajaxFunction() { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return false; } } } } </script> Script creates variable Warning for user if all browsers fail IE can use 2 types of ActiveXObjects
  • 12.  The XMLHttpRequest object is the key to AJAX. It has been available ever since Internet Explorer 5.5 was released in July 2000, but was not fully discovered until AJAX and Web 2.0 in 2005 became popular.  XMLHttpRequest (XHR) is an API that can be used by JavaScript, web browser scripting languages to transfer and manipulate XML data to and from a webserver using HTTP, establishing an independent connection channel between a webpage's Client-Side and Server- Side
  • 13.  abort()  getAllResponseHeaders()  getResponseHeader( headerName )  open( method, URL )  open( method, URL, async )  open( method, URL, async, userName )  open( method, URL, async, userName, password )  send( content )  setRequestHeader( label, value )
  • 14.  Onreadystatechange  readyState  responseXML  Status  statusText
  • 15.  Cross-Browser and Cross-Platform Compatibility.  Ajax application can be build with open standards technologies, is not tied to proprietary software.  Lower cost of development.  The code can be optimized and separated.  More rich interaction with the user, by example:autocomplete, drag and drop, transparency, shading, Z-ordering, etc.  More speed, and less wait time for screen updated.  Widespread adoption of Ajax by industry leaders.  Integration with others proprietaries technologies.
  • 16.  Same security problems as in classic Web applications. Think of different way in the development and design. The use of frameworks can generate complexity. More interaction through JavaScript. More code for old browser. Special code for some functions of Internet Explorer.
  • 17. Server Side AJAX-based Web applications use the same server side securityschemes of regular Web applications. Client Side Downloaded JavaScript code is constrained by sand-box security model and can be relaxed for signed JavaScript.
  • 18.
  • 19.  AJAX extends the usefulness of web apps  Saves entire pages reloading  Gives greater transparency to users  Data loads ‘in the background’  Uses existing technologies  Is becoming very popular
  • 20. 1. http://www.w3schools.com/ajax/ 2. http://www.tutorialspoint.com/ajax/ 3. http://net.tutsplus.com/ 4. https://developer.mozilla.org/en/XMLHttpReque st 5. SAMS Teach Yourself Ajax in 10 Minutes, Phil Ballard, p. 85 6. JavaScript & AJAX, 6th Edition, Tom Negrino and Dori Smith, ch.15