So, you’ve made your first AJAX call. You got some data back. Maybe you made a web app.
I know that in the beginning of coding it often happens that someone tells you “Here, just do this this way. It works.” The keen new developer may be screaming “BUT WHY DOES IT WORK!? WHAT IS IT!? HOW CAN I APPLY THIS KNOWLEDGE GOING FORWARD!?”
Let me try to answer.
What is AJAX?
AJAX is not a single technology or an application. It is a group of technologies being used to together to perform a specific task. Here’s a very succinct list of AJAX’s component parts from Jesse James Garrett’s 2005 article on AJAX:
What does AJAX do?
Basically, AJAX makes it possible to make requests to a server and update a page without a full page refresh. It keeps the user’s experience continuous while allowing the page to be dynamically changed.
What does AJAX stand for?
What is asynchronicity?
Totally by convention. XML is a data format. JSON is a data format. Using JSON is more common than XML right now but most people still say AJAX even though it’s more accurate to say AJAJ.
So, what’s an AJAX call?
It’s when your web page sends a request to a server for some information, which will be returned to you in XML or JSON (or another) format.
Most commonly, you’re gonna use AJAX to request data. You can also send data, but don’t worry about that for now.
I still don’t get it.
No big! Ask a question or read these articles:
Ajax: A New Approach to Web Applications (2005)
What’s a callback? (Wikipedia)
What’s an XMLHttpRequest? (W3C Schools, 2014)
This seems to be the only article out there on the differences between AJAX/AHAH/AJAH/AJAJ (2010)