What is AJAX?
- AJAX stands for "Asynchronous JavaScript and XML."
- AJAX helps you to create smarter web applications that send and receive the important data to the server without reloading the entire page.
- Web applications that use AJAX are Youtube, Twitter, Facebook, Gmail, Instagram, etc.
Technologies used in AJAX
The technologies that AJAX uses are already present in all modern web browsers, which means the client does have to install any extra library to run an AJAX website. AJAX consists of the following components-
- JavaScript- It is an essential part of AJAX that enables you to provide the client side functionality. JavaScript has functions that enable you to manipulate the HTML page.
- XMLHttpRequest- Object of XMLHttpRequest allows you to send request to the server asynchronously or synchronously in the background.
- Server-Side Technology- Programming languages such as PHP, JSP, ASP.NET, etc. is required to handle the request that comes from the JavaScript client.
Advantages of AJAX
- Cross-browser & cross-platform compatibility
- Better & richer user experience
- Web programming flexibility
- Reduced consumption of server resources
Disadvantages of AJAX
- Source code of AJAX is viewable.
- It depends on javascript and cannot work if javascript is disabled in a web browser.
- You cannot bookmark the content generated by AJAX.