What is AJAX?

Why use AJAX?

Traditional web pages work like this:

  1. User performs an action (e.g., clicks a link, submits a form).

  2. Browser sends a request to the server.

  3. The entire page reloads with new data.

With AJAX:

  1. User performs an action.

  2. JavaScript sends an asynchronous request to the server.

  3. Server sends data back (JSON, XML, HTML, or text).

  4. JavaScript updates only the required part of the page.

? This makes web applications faster, smoother, and more interactive.

What is AJAX?

Importance of

AJAX INTRODUCTION

 

AJAX stands for Asynchronous JavaScript and XML.
It’s not a programming language, but a set of web technologies used together to:

  • Send and receive data from a server asynchronously (in the background).

  • Update parts of a webpage without reloading the whole page.

? Example: When you type in Google’s search bar and suggestions appear instantly, that’s AJAX.