| dig-center | dig-news | dig-arts | dig-fun | dig-humors | dig-music | dig-tech | dig-desktop | dig-moreabawt |

Ajax technology

Ajax technology

Author: susen

Ajax (asynchronous JavaScript and XML) technology is being increasingly popular in website design. This technique is used to submit data to the server without refreshing an HTML form. Suppose you are filling an online registration form. You write your user name, email, address etc. and submit that form. At the server end server detects that the user name has already been taken by another user. So it will generate an error message and request you to choose different user name. Now you have to fill the entire form again unless the server brings your data back to you through query string. Moreover it is not very safe to send your personal information through query string. In such case AJAX data submit is the best solution. Another useful feature of Ajax data submit is that you can send custom data (like user IP) which is not in the form field.

Like conventional data submission Ajax data submit also of two types, GET and POST. There relative merits demerits are same as conventional data submission.

How data is submitted using Ajax:

1. When user submits data by pressing submit button or by clicking submit link a JavaScript function is called.

2. This function establishes connection with the server by XML HTTP REQUEST object. When connection is established data from the form fields are transmitted to the server.

3. Whenever the server response is received another JavaScript function is fired. This function then takes the necessary steps according to the response text from the server end.

Advantages and disadvantages:

1. As whole page is not reloaded Ajax submission is faster than conventional form submission process.

2. Use of Ajax is not limited to form data submission. It is widely used in dynamic menu design, collecting data for web stat analysis, etc.

3. Not all browser support JavaScript. In such cases Ajax fails to work.

4. As data are dynamically loaded web history is not available, i.e. you can2019t reload page by using back button of your browser.

About the Author:

For example and practical application of Ajax please visit our site at http://free-websites.co.cc. You may reprint this article with all links intact only.

Article Source: ArticlesBase.com - Ajax technology

No comments:

Post a Comment