How data is submitted using ajax:
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.
Ajax Advantages and disadvantages:
1. As whole page is not reloaded ajax submission is faster than conventional form submission process.
2. It is more users friendly.
3. Use of ajax technology is not limited to form data submission. It is widely used in dynamic menu design; collecting data for web stat analysis, or even reload the entire page dynamically.
5. As data are dynamically loaded web history is not available, i.e. you can’t reload page by using back button of your browser.