Ajax Technology
by mrsdkrebs
Introduction to Ajax Development:
Ajax (Asynchronous JavaScript and XML) technology has become increasingly popular in web design. With Ajax development, you can submit form data to the server without refreshing the page. For example, imagine you are filling out an online registration form. You enter your username, email address, and other details, then submit the form. If the server detects that the username is already taken, it will generate an error message and ask you to choose a different username. Without Ajax, you would need to fill out the entire form again, unless the server returns your data through a query string. Additionally, sending personal information through a query string is not very secure. In such cases, Ajax data submission is the best solution. Another useful feature of Ajax technology is the ability to send custom data (like user IP) that is not part of the form field.
Like traditional data submission, Ajax data submission also comes in two types: GET and POST. Their relative merits and demerits are the same as traditional data submission.
Submitting Data Using Ajax:
- When a user submits data by clicking the submit button or link, a JavaScript function is called.
- This function
Recent Comments