jQuery Introduction | Using Ajax | Ajax Overview
What Is Ajax?
Ajax means Asynchronous JavaScript and XML. Ajax is not a programming language. Ajax is a technique for asynchronous information exchange using JavaScript and XML. Ajax lets you update only part of a web page without reloading the entire page. Ajax exchanges data with the server in the background and displays or loads data on the web page.
The following example loads data by using the .load() method provided by jQuery.
$("#btnLoad").on("click", function() {
$("#text").load("/rest/1/pages/244");
});
Ajax Frameworks
An Ajax framework is a development environment that includes various features in advance so that you can develop more easily with Ajax. Among these Ajax frameworks, the most widely used representative frameworks are as follows.
- Prototype : A well-known AJAX framework
- script.aculo.us : Provides various interfaces based on Prototype
- jQuery : An AJAX framework used as widely as Prototype
- jQuery UI : Provides various interfaces based on jQuery
- dojo : Provides various visual effects and widgets
- Google Web Toolkit : An AJAX framework distributed by Google
- ASP.NET AJAX : An AJAX framework officially developed by Microsoft for ASP.NET support
- YUI : Yahoo User Interface
There are many other Ajax frameworks, and the most widely used Ajax framework today is jQuery.
The word framework is used here, but from another point of view it could also be called a library. However, because it plays a role in controlling the flow of Ajax implementation, it may also be seen as a framework.
Ajax with jQuery
jQuery provides several methods so that you can use Ajax features easily. By using the provided methods, you can easily send HTTP requests and request data from the server with a method suitable for the type of data.