Since it is to know Ajax, theory and practice combined, so that they learn faster, more in-depth understanding, I divided a few points:
1, understand the traditional synchronous interactive mode and Ajax solutions
2, the technology used by Ajax
3. Instance Experience Ajax
First, synchronous interactive mode and Ajax solution
The traditional Web application is the way of synchronous interaction, the process of this kind of synchronous interaction is shown as follows
What is the synchronous way of interacting:
First, the user submits a processing request to the HTTP server. Then, after receiving the request, the server is processed according to the business logic in the prepared program, such as exchanging data information with the database server. Finally, the server responds to the request, returns the result to the client, returns an HTML that is displayed in the browser, and usually has a CSS style rich page display.
The lack of synchronization interaction will give users an incoherent experience, when the server processing requests, the user can only wait for the state, the page can only be displayed in blank.
Ajax Solutions
Ajax uses asynchronous interaction processing, a good solution to the inconsistent user experience, processing process as shown: