AJAX in JavaScript

Chay Auker
1 min readAug 20, 2021

--

I am sure a lot of you have heard about AJAX. When I first learned about AJAX, I didn’t understand what it was. Then I did some research and would like to share some information about what I learned.

What is AJAX (Asynchronous JavaScript And XML)?

AJAX is not a programming language, framework, or library. AJAX allows data to be sent, received, and updated asynchronously in the server. Everything is done behind the scenes without refreshing the page. It’s used for creating interactive web applications. As an example, when the user clicks the “Show button” and the data is shown without refreshing the page. Let’s talk about the last word XML. XML stands for eXtensible Markup Language. It is a language that is similar to HTML which was designed to store data in a self-descriptive manner. XML is rarely used and has been replaced by JSON which is more popular because it is faster and designed for better data interchange.

credit: teachbeamers

As this picture shows, you can see the AJAX approach where JavaScript sends a request to a web server and receives the response which updates the DOM.

--

--

Chay Auker
Chay Auker

Written by Chay Auker

Software Engineering at Flatiron

No responses yet