Introduction
AJAX stands for Asynchronous JavaScript and XML
Ajax is the most important technologies for the development of highly interactive web application and due to its Features it has become extremely popular these days. AJAX is new development techniques used for the development of most interactive website. Ajax helps us in making web application more interactive by retrieving small amount of data from web server and then showing it on your application. We can do all these things without refreshing our page.
Usually in all the web applications the users enters the data into the form and then clicks on the submit button to submit the request to the sever. Server process the request and returns the view in new page by reloading the whole page. This Process is inefficient, time consuming and a little frustrating for you user if the only the only the small amount of data exchange is required.
For Example: In a user registration form, this can be frosting thing for the use, as whole page is reloaded only to check the available of the user name. Ajax will help in making your application more interactive. With the help of Ajax your can tune your application to check the availability of the user name without refreshing the whole page. Learning such technologies helps students develop industry-ready skills, which is why choosing one of the best colleges for BCA can be an important step toward a successful IT career.
Understanding the Technology Behind Ajax.
Ajax is not a single technology, but it is a combination of May technologies. These technologies are supported b modern web browsers. Following are techniques used in the Ajax Applications.
-
Java Script
Java Script is used to make a request to the web server. Once the response is returned by the web server, more Java Script can be used to update the current page. DHTML and CSS are used to show the output to the user. Java Script is used very heavily to provide the dynamic behavior to the application. -
Asynchronous Call the server :
Most of the Ajax application used the XXML Http Request object to send the request to the web server. These calls are Asynchronous and there is no need to wait for the response to come back. User can do the normal work without any problem. -
XML :
XML may be used to receive the data returned from the web server. Java Script can be used to process the XML Data returned from the web server easily.
Working of Ajax
When user first visits the page, the Ajax engine is initialized and loaded. From that point of time user interacts with Ajax engine to interact with the web server. The Ajax engine operators asynchronously while sending the request to the server and receiving the response from server. Ajax life cycle within the web browser can be divided into following states.
- User visit to the page: User visits the URL by typing URL in browser or clicking a link from some other page.
- Initialization of Ajax Engine : When the page is initially loaded the ajax engine is also initialized. The Ajax can also be set to continuously refresh the page content without refreshing the whole page.
-
Even Prove sing loop :
Browser event may instruct the Ajax engine to send request to server and receive the response data - Server response – Ajax engine receives the response from the server. Then it calls the Java Script call back functions are used to update the browser display.
Benefits of Ajax
Ajax is new very promising technology, which has become extremely popular these days. Here the benefits of using Ajax.
- Ajax can be used for creating rich, web based application that looks and works like a desktop applications.
- Ajax is easy to learn. Ajax is base on Java Script and existing technology like XML, CSS and DHTML, etc. So, its very easy to learn Ajax.
AJAX application eliminate the start stop start stop nature of traditional web pages hence follow web application to look and behave like the desktop ones, of course to a limited extent . AJAX follows pages to request small bits of information’s from the server instead of entire pages. This governmental updating of pages eliminates the page refresh problem and slow response that have plagued web applications since their inception.
AJAX has received tremendous industry recognition and support. The major software web portals have adopted large number of Ajax toolkits and libraries are available for free. AJAX does have its limitation but most of them can as well as on mobile devices.
Author
Mr.Rahul Agarwal
Associate Professor,Department Of CS & I.T.
Biyani Group of Colleges,Jaipur