AJAX
AJAX JSON Example
We can get JSON data by AJAX code. AJAX provides facility to get response asynchronously. It doesn’t reload the page and saves bandwidth. AJAX JSON…
Search Example
In this example, we are creating a form to search employee by name using ajax in java. Here, we have written the two-tier application code,…
Comment Form
In this example, we are creating a form to post comment. The form data is saved in the database and a list of all posted…
AJAX with Database
In this example, we are interacting with the database. You don’t have to make any extra effort. Only write the database logic in you server…
AJAX EXAMPLE
To create ajax example, you need to use any server-side language e.g. servlet, jsp, php, asp.net etc. Here we are using JSP for generating the…
How AJAX works ?
AJAX communicates with the server using XMLHttpRequest object. Let’s try to understand the flow of ajax or how ajax works by the image displayed below….
XMLHttpRequest
An object of XMLHttpRequest is used for asynchronous communication between client and server. It performs following operations: Sends data from the client in the background…
AJAX Technologies
As describe earlier, ajax is not a technology but group of inter-related technologies. AJAX technologies includes: HTML/XHTML and CSS DOM XML or JSON XMLHttpRequest JavaScript…
Asynchronous
Before understanding AJAX, let’s understand classic web application model and ajax web application model first. Synchronous (Classic Web-Application Model) A synchronous request blocks the client…
What is AJAX
AJAX tutorial covers concepts and examples of AJAX technology for beginners and professionals. AJAX is an acronym for Asynchronous JavaScript and XML. It is a…