Advantage Of Ajax
- AJAX web applications are browser and platform independent.The web applications in AJAX supported by all major browsers.But it support only IE 5.0+, Safari 1.2+, Mozilla 1.0+ / Firefox, Opera 8+, and Netscape 7+.
- AJAX is used to make a better Internet Applications(web applications).
- Ajax web base applications are easier to install and support, and easier to develop.
- With AJAX, Internet applications(Web applications) can be made better, faster,richer and more user-friendly.
- AJAX Uses HTTP Requests.
In traditional JavaScript if we want to get informations from a server (from database or a file ), or user have send information to a server. Then we will have to make an HTML form .Which will send data to server through GET or POST method. The user will have to click on "Submit" button to send/get the information.This mean we have send whole data of form and we have wait for the server to respond results.Then the server sends a new page as a results. This mean there is refresh of page.Because the server returns a new page each time the user submits input. So the traditional web applications was slower and tend to be less user-friendly. With object of XMLHttpRequest we can communicates directly with the server and with HTTP request, a web page can make a request to, and get a response from a web server - without reloading the page.