SlideShare a Scribd company logo
AJAX
By
Sonal Anil
INDEX
• What Is Ajax
• Working of AJAX
• Usage Samples/Examples
• XMLHttpRequest
• Advantages
• Disadvantages
AJAX Introduction [Autosaved].pptx
WHAT IS
AJAX
Classic web application model AJAX web application model
User
Frontend
Back end
WHAT IS
AJAX
• AJAX stands for Asynchronous JavaScript
and XML.
• AJAX is a technique for creating
better, faster, and more interactive web
applications with the help of XML, HTML,
CSS, and Java Script.
• Client-side technology.
• Allows the web page to change its
content without refreshing the whole
page.
• Allows web pages or parts of them to be
updated asynchronously
• Based on XML HTTP request object
• The XMLHttpRequest object is used to exchange
data with a server behind the scenes(i.e.) possible
to update parts of a web page, without reloading
the whole page.
• Syntax for creating an XMLHttpRequest object:
xmlhttp=new XMLHttpRequest();
• An object of XMLHttpRequest is used for
asynchronous communication between client and
server.
• It performs following operations:
• Sends data from the client in the background
• Receives the data from the server
• Updates the webpage without reloading it.
Object
XMLHttpReq
uet
• AJAX allows web pages to be
updated asynchronously by
exchanging small amounts of
data with the server without
reloading the whole page.
• Classic web pages, must reload
the entire page if the content
should change.
• Examples of applications using
AJAX: Google Maps, Gmail,
YouTube, and Facebook tabs.
Working Of AJAX
AJAX Introduction [Autosaved].pptx
AJAX Introduction [Autosaved].pptx
AJAX Introduction [Autosaved].pptx
• Autocomplete search textboxes
• Cascading dropdown list boxes (sample)
• Real-time - Continuous data refresh (long
polling, chat systems…)
• Immediate forms validation feedback
• Conditional display / dynamic content
• Auto save user information (Google Docs,
Facebook)
• Ratings, voting & other instant actions
Usage
samples
• page can be refreshed dynamically
• response of the interface to user is
faster
• load much faster because the payload
is much smaller
• reduces the demand for bandwidth
• allows the web applications to be much
more efficient
• operate more like an application rather
than a standalone program
• Integration of browsers
• hard for the user to bookmark the state of the web
page
• Network latency may break usability
• Ajax provides functionality to create a robust web application.
• If an Ajax web application is coded properly it will run faster than
and as secure as a non-Ajax program.
• Ajax also allows websites to reduce their overall bandwidth usage
and server load by reducing the number of full-page loads.

More Related Content

PDF
Ajax & Reverse Ajax Presenation
PPTX
Asynchronous javascript and xml
PPTX
Overview of AJAX
PPT
PPTX
Ajax
Ajax & Reverse Ajax Presenation
Asynchronous javascript and xml
Overview of AJAX
Ajax

Similar to AJAX Introduction [Autosaved].pptx (20)

PDF
Ajax
PPTX
PDF
Ajax basics
PPT
PPT
Ajax Ppt 1
PPTX
PPTX
AJAX.pptx
PPT
PPT
PPT
Ajax introduction
PPT
Ajax workshop
PPT
Project First presentation about introduction to technologies to be used
PPTX
Ajax:From Desktop Applications towards Ajax Web Applications
PPTX
Progressive Web Apps and React
PDF
ITI006En-AJAX
Ajax
Ajax basics
Ajax Ppt 1
AJAX.pptx
Ajax introduction
Ajax workshop
Project First presentation about introduction to technologies to be used
Ajax:From Desktop Applications towards Ajax Web Applications
Progressive Web Apps and React
ITI006En-AJAX

Recently uploaded (20)

PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PDF
Introduction to Business Data Analytics.
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Foundation of Data Science unit number two notes
PDF
Mega Projects Data Mega Projects Data
PDF
Launch Your Data Science Career in Kochi – 2025
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PPTX
Supervised vs unsupervised machine learning algorithms
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Computer network topology notes for revision
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
Major-Components-ofNKJNNKNKNKNKronment.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
Introduction to Business Data Analytics.
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Reliability_Chapter_ presentation 1221.5784
Foundation of Data Science unit number two notes
Mega Projects Data Mega Projects Data
Launch Your Data Science Career in Kochi – 2025
Introduction to Knowledge Engineering Part 1
Business Ppt On Nestle.pptx huunnnhhgfvu
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
Moving the Public Sector (Government) to a Digital Adoption
Supervised vs unsupervised machine learning algorithms
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Computer network topology notes for revision
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
Data_Analytics_and_PowerBI_Presentation.pptx

AJAX Introduction [Autosaved].pptx

  • 2. INDEX • What Is Ajax • Working of AJAX • Usage Samples/Examples • XMLHttpRequest • Advantages • Disadvantages
  • 4. WHAT IS AJAX Classic web application model AJAX web application model User Frontend Back end
  • 5. WHAT IS AJAX • AJAX stands for Asynchronous JavaScript and XML. • AJAX is a technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS, and Java Script. • Client-side technology. • Allows the web page to change its content without refreshing the whole page. • Allows web pages or parts of them to be updated asynchronously • Based on XML HTTP request object
  • 6. • The XMLHttpRequest object is used to exchange data with a server behind the scenes(i.e.) possible to update parts of a web page, without reloading the whole page. • Syntax for creating an XMLHttpRequest object: xmlhttp=new XMLHttpRequest(); • An object of XMLHttpRequest is used for asynchronous communication between client and server. • It performs following operations: • Sends data from the client in the background • Receives the data from the server • Updates the webpage without reloading it. Object XMLHttpReq uet
  • 7. • AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server without reloading the whole page. • Classic web pages, must reload the entire page if the content should change. • Examples of applications using AJAX: Google Maps, Gmail, YouTube, and Facebook tabs. Working Of AJAX
  • 11. • Autocomplete search textboxes • Cascading dropdown list boxes (sample) • Real-time - Continuous data refresh (long polling, chat systems…) • Immediate forms validation feedback • Conditional display / dynamic content • Auto save user information (Google Docs, Facebook) • Ratings, voting & other instant actions Usage samples
  • 12. • page can be refreshed dynamically • response of the interface to user is faster • load much faster because the payload is much smaller • reduces the demand for bandwidth • allows the web applications to be much more efficient • operate more like an application rather than a standalone program
  • 13. • Integration of browsers • hard for the user to bookmark the state of the web page • Network latency may break usability
  • 14. • Ajax provides functionality to create a robust web application. • If an Ajax web application is coded properly it will run faster than and as secure as a non-Ajax program. • Ajax also allows websites to reduce their overall bandwidth usage and server load by reducing the number of full-page loads.