AJAX Flashcards
1
Q
What is AJAX?
A
Read data from a web server - after a web page has loaded
Update a web page without reloading the page
Send data to a web server - in the background
2
Q
What does the AJAX acronym stand for?
A
Asynchronous
3
Q
Which object is built into the browser for making HTTP requests in JavaScript?
A
XMLHttpRequest
4
Q
What event is fired by XMLHttpRequest objects when they are finished loading the data from the server?
A
Load event
5
Q
Bonus Question: An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
A
Its still an event and they’re both branch off of a prototype