SlideShare a Scribd company logo
AJAX
• Asynchronous JavaScript And XML

• AJAX is based on JavaScript and HTTP requests.
HISTORY
•   1995 – Java Applets
•   1996 – MS IE5 IFrame
•   1999/2000 – MS IE5 XMLHTTP ActiveX Control
•   By 2004 – Other browsers - XMLHttpRequest object
•   2005 – Google made it popular through google suggest,
    gmail and other apps
• 2006 – W3C released the first draft specification
Technologies
• HTML and CSS for marking up and styling information.
• The DOM accessed with JavaScript.
• The XMLHttpRequest (XHR) object is usually used for
  exchanging data asynchronously between browser and
  server.
• Common data exchange formats include XML, pre-
  formatted HTML, plain text, and JSON.
Advantages
• Page reload avoided to display same common content
  every time.
• The use of asynchronous requests allows the client's
  Web browser UI to be more interactive and to respond
  quickly to inputs.
• Reduce connections to the server.
• State can be maintained throughout a web site.
Disadvantages
• Browser's "back" button issue.
• Difficult for a user to bookmark a particular state of the
  application.
• Web crawlers do not execute JavaScript code, making it
  difficult to index public pages.
• Browser that do not support Ajax or JavaScript, or simply
  have JavaScript disabled.
• The Same origin policy prevents some Ajax techniques
  from being used across domains.
• Testing for malicious attacks and debugging difficult.
XMLHttpRequest (XHR)
• The open method
   – (type, url, async, user, password)
• The setRequestHeader method
   – Content-Type, User-Agent, etc
• The send method
   – Parameter content to be sent
• The onreadystatechange event listener
   – readyState (1 for open, 2 for send, 3 for loading, 4 for complete)
• The HTTP response
   – responseXML, responseText
Browser Object Model
Ajax Libraries
•   JQuery
•   ExtJs
•   Dojo
•   Prototype
•   GWT

More Related Content

PDF
Frost - W3C Mobile Ajax Workshop 2007
PPT
4005-713 ` XML Architecture, Tools & Technique ` Presentation
PPTX
Introduction to ajax
PPTX
Ajax xml json
PDF
Starting with MongoDB
PPTX
Training presentation
Frost - W3C Mobile Ajax Workshop 2007
4005-713 ` XML Architecture, Tools & Technique ` Presentation
Introduction to ajax
Ajax xml json
Starting with MongoDB
Training presentation

What's hot (20)

KEY
MongoDB SF Python
PPTX
Html
PDF
Taming 3rd party content
PPTX
NOSQL Databases for the .NET Developer
PPTX
Session 32 - Session Management using Cookies
PPT
Web server
PDF
Group meeting: Polaris - Faster Page Loads Using Fine-grained Dependency Trac...
PDF
Introduction to ajax
KEY
MongoDB London PHP
PPTX
Session 29 - Servlets - Part 5
PPTX
Women Who Code, Ground Floor
PPTX
Drupal - What is it?
PPTX
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
PDF
Writing Space and the Cassandra NoSQL DBMS
PPT
Ajax workshop
PPTX
Part One: Building Web Apps with the MERN Stack
PPTX
MongoDB - Getting Started
PPTX
Website/Web Applications / Static vs Dynamic Website / Web Browser /
PPT
Ajax Presentation
MongoDB SF Python
Html
Taming 3rd party content
NOSQL Databases for the .NET Developer
Session 32 - Session Management using Cookies
Web server
Group meeting: Polaris - Faster Page Loads Using Fine-grained Dependency Trac...
Introduction to ajax
MongoDB London PHP
Session 29 - Servlets - Part 5
Women Who Code, Ground Floor
Drupal - What is it?
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
Writing Space and the Cassandra NoSQL DBMS
Ajax workshop
Part One: Building Web Apps with the MERN Stack
MongoDB - Getting Started
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Ajax Presentation
Ad

Similar to Ajax introduction (20)

PPT
VFP & Ajax
PPTX
HSHDGDGDHDYDUDUDUDHDHDHSHAHAHSHSBDHDHDHDHDHD
PDF
End-to-end W3C APIs - tpac 2012
PDF
Introduction to AJAX
PPTX
WEB TECHNOLOGY Unit-5.pptx
PPTX
AJAX Introduction [Autosaved].pptx
PPT
PHP - Introduction to PHP AJAX
PDF
End to-end W3C - JS.everywhere(2012) Europe
PPTX
Ajax:From Desktop Applications towards Ajax Web Applications
PPTX
Ajax
PDF
Web architecturesWeb architecturesWeb architectures
PPT
PPT
Web Programming using Asynchronous JavaX
PDF
Intro JavaScript
PPTX
Evolution of java script libraries
PPTX
Asynchronous javascript and xml
PPTX
PPT
Project First presentation about introduction to technologies to be used
PPT
VFP & Ajax
HSHDGDGDHDYDUDUDUDHDHDHSHAHAHSHSBDHDHDHDHDHD
End-to-end W3C APIs - tpac 2012
Introduction to AJAX
WEB TECHNOLOGY Unit-5.pptx
AJAX Introduction [Autosaved].pptx
PHP - Introduction to PHP AJAX
End to-end W3C - JS.everywhere(2012) Europe
Ajax:From Desktop Applications towards Ajax Web Applications
Ajax
Web architecturesWeb architecturesWeb architectures
Web Programming using Asynchronous JavaX
Intro JavaScript
Evolution of java script libraries
Asynchronous javascript and xml
Project First presentation about introduction to technologies to be used
Ad

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Modernizing your data center with Dell and AMD
Diabetes mellitus diagnosis method based random forest with bat algorithm
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
The AUB Centre for AI in Media Proposal.docx
Understanding_Digital_Forensics_Presentation.pptx
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto

Ajax introduction

  • 1. AJAX • Asynchronous JavaScript And XML • AJAX is based on JavaScript and HTTP requests.
  • 2. HISTORY • 1995 – Java Applets • 1996 – MS IE5 IFrame • 1999/2000 – MS IE5 XMLHTTP ActiveX Control • By 2004 – Other browsers - XMLHttpRequest object • 2005 – Google made it popular through google suggest, gmail and other apps • 2006 – W3C released the first draft specification
  • 3. Technologies • HTML and CSS for marking up and styling information. • The DOM accessed with JavaScript. • The XMLHttpRequest (XHR) object is usually used for exchanging data asynchronously between browser and server. • Common data exchange formats include XML, pre- formatted HTML, plain text, and JSON.
  • 4. Advantages • Page reload avoided to display same common content every time. • The use of asynchronous requests allows the client's Web browser UI to be more interactive and to respond quickly to inputs. • Reduce connections to the server. • State can be maintained throughout a web site.
  • 5. Disadvantages • Browser's "back" button issue. • Difficult for a user to bookmark a particular state of the application. • Web crawlers do not execute JavaScript code, making it difficult to index public pages. • Browser that do not support Ajax or JavaScript, or simply have JavaScript disabled. • The Same origin policy prevents some Ajax techniques from being used across domains. • Testing for malicious attacks and debugging difficult.
  • 6. XMLHttpRequest (XHR) • The open method – (type, url, async, user, password) • The setRequestHeader method – Content-Type, User-Agent, etc • The send method – Parameter content to be sent • The onreadystatechange event listener – readyState (1 for open, 2 for send, 3 for loading, 4 for complete) • The HTTP response – responseXML, responseText
  • 8. Ajax Libraries • JQuery • ExtJs • Dojo • Prototype • GWT