JavaScript AJAX Flashcards
What is AJAX?
Technique for loading data into part of a page without having to refresh the entire page. The data is often sent in format called JSON
It allows you to request data from server and load it without having to refresh the page Sites so that they can use or show that data later on
Example: autocomplete (grammarly)
Latest tweetsdf
Checking whether if your username is available or not
What does the AJAX acronym stand for?
Asychronistic JavasScript and XML
What event is fired by XMLHttpRequest objects when they are finished loading the data from the server?
The load event
Bonus Question: An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
Share Prototype