- A client event occurs
- An XMLHttpRequest object is created
- The XMLHttpRequest object is configured
- The XMLHttpRequest object makes an async. request
- The ValidateServlet returns an XML document containing the result
- The XMLHttpRequest object calls the callback() function and processes the result
- The HTML DOM is updated

WTF? Ne comprene pas?
Lets look at couple of examples to understand the flow.
Example 1: Real Time data validation example.

Example 2 : Real time server sided character counting

Wanna dig deeper? Dig here then
Related : AJAX Basics





No Comments » 