AJAX is an Asynchronous JavaScript and XML used on the client-side as a group of related web communication strategies to create smaller web applications. Depending on the AJAX model, web applications can send and retrieve data from the server consistently without interfering with the display and behavior of the existing page.
Any data updated using AJAX can be stored using the JSON format on a web server. AJAX is used so that JavaScript can retrieve these JSON files as needed, scan them, and perform one of the following tasks -
Keep the values separated by the variable to continue working before displaying them on a web page.
Provides specific information on DOM elements on a web page for display on the website.
The following code shows JSON with AJAX. Save it as an ajax.htm file. Here the JSON () loading function is used interchangeably to load JSON data.
Name | Country |
---|---|
Sachin |
India |
|