XML
In order to transfer the new data from the server to the web browser within an asynchronous request, XML is
used to format the data. In general, the language used to write the server application is different from
JavaScript as used in the web browser, so a language neutral data transfer format is used. XML is a well
known standard for solving this type of problem, but other formats, notably structured HTML, plain text and
JSON (a JavaScript based data transfer format) are also used in Ajax applications.
Note that even if JSON rather than XML is used as the data transfer format, the application is still known
as an Ajax application as it sounds better than Ajaj! The term Ajax has taken on meaning beyond its original
definition and nowadays it represents a class of technologies that provide dynamic user interaction with the
web server.
4.1.2 Using Ajax in enterprise applications
Ajax has many uses in all kinds of web applications. The main uses are:
Form validation
Form helpers: Auto-completion and drop down lists
Dragging and dropping of items on the page
Let??™s look at each one in more detail.
Form validation
JavaScript has been used for form validation for a long while. Usually the validation is a piece of ad-hoc code
above the form that checks for the obvious errors, but the main validation is left to the server.
Pages:
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122