Front End Problems

What is about AJAX?

What is AJAX?

Simply put, AJAX is the use of JavaScript to send and receive using HTTP without reloading the page. AJAX is an acronym for asynchronous JavaScript and XML, and is used as a technique for creating client-side asynchronous web applications. AJAX is considered a group of technologies. HTML and CSS can be used in combination to mark up and style information. JavaScript and the XMLHttpRequest object provide the method for exchanging data asynchronously between the browser and the server.

What is AJAX used for, and what companies use it?

Why do developers use AJAX?

AJAX provides more efficient and smoother running applications, which gives users better interactive experiences.

How does AJAX work?

AJAX, sends and retrieves data from a server asynchronously. This enables the web application to continue running and dynamically display. It allows the user to interact with the information presented on the page, avoiding full page reloads.

The image below shows the process the execution of AJAX.

  1. A user interaction in the browser triggers the event, such as a button click
  2. The AJAX call fires. This creates and AJAX request, browsers use the XMLHttpRequest object. When the server responds to the browser’s request, the same XMLHttpRequest object will process the result.

3. The server-side script receives the input from JavaScript, and processes the data.

4. After the data is processed, the script sends the data back to the original client-side page that made the request via XML

5. Once the data is received, a second JavaScript callback function, is called this function captures the data, and updates the web page accordingly.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s