Book Image

Spring MVC Beginner's Guide

By : Amuthan Ganeshan
Book Image

Spring MVC Beginner's Guide

By: Amuthan Ganeshan

Overview of this book

Table of Contents (19 chapters)
Spring MVC Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Handling a web service in Ajax


Asynchronous JavaScript and XML (Ajax) is a web development technique used on the client side to create asynchronous web applications. In a typical web application, every time a web request is fired as a response, we get a full web page loaded as a response; however, in an Ajax-based asynchronous web application, web pages are updated asynchronously by polling small data with the server behind the scenes. This means that using Ajax, it is possible to update parts of a web page without reloading the entire web page. With Ajax, web applications can send data to and retrieve data from a server asynchronously. The asynchronous aspect of Ajax allows us to write code that can send a request to a server and handle a server response without reloading the entire web page.

In an Ajax-based application, the XMLHttpRequest object is used to exchange data asynchronously with the server, where XML or JSON is often used as the format for transferring data. The "X" in AJAX...