AJAX Fundamentals

AJAX Fundamentals

AJAX

  • An acronym for Asynchronous JavaScript and XML
  • Sends and retrieves data from the server without having to refresh the page
  • A group of related web development technologies implemented on the client-side
    • HTML and CSS are used to mark up and style the data
    • The DOM is accessed with JavaScript to dynamically display the data
  • Allows web applications to send and retrieve data from a server in the background
    • Background actions do not interfere with the display and behavior of the existing page
    • Data is usually retrieved using the XMLHttpRequest object
  • JavaScript and the XMLHttpRequest object together enable data exchange without full page reloads
    • JavaScript is used to make the asynchronous request to the server
    • JavaScript is used to modify the content of the page when the response is received
    • The data that is sent to the client is packaged in an XML format

Sources