In this article I will explain the AJAX technology. And also the explain with the help of example and know where we can use the AJAX in web programming. Now a day's AJAX is growing technology in web programming and it's uses by Google Maps, G mail, YouTube, and Facebook tabs etc. So lets learn and implement this technology.
Where we can use AJAX:- Before implement AJAX let's understand the where we can use Ajax. As we know the Ajax creates fast and more dynamic web pages so the it's use is increases and create more professional web pages in web programming.
Best example of ajax technology is Google search. When we type query in google search box then it suggest related query's.
Most use of ajax in signup page where we need to check the user name is available or not. Just like in Gmail signup page. as we type email address it checks availability of email.
And in signup page if we select the country then it's corresponding district and and if select district then corresponding city's.
Implementation:- In implementation at first understand the how ajax works.
In ajax at client side an event occurs then the browser creates XMLHttpRequest object (to exchange data asynchronously with a server) and send to server.
In AJAX implementation we need to two web pages one for client side which generate event and display processed data. And one for server, which process the operation and generate the data corresponding to XMLHttpRequest.
Let's understand the signup page where we can check user name availability as we type user name.
Download full Ajax implementation packs.
One thing must remember that the if web page part which is update by ajax must me same as the server send the response to XMLHttpRequest.
Means that if we update the list then server must send the list type value in XML object.