Directory
The impact of AJAX patterns
Single-page interface model
Disadvantages of one-page interface model
Access to Rich Internet applications
AJAX Patterns Overview
Unique URL pattern
Timeout mode
AJAX represents a paradigm shift for web solution architects compared to the development patterns used by most Web applications today. It is based on some new principles and rules to explain the behavior of web-based systems, and requires some new algorithms to implement them.
The main principle behind AJAX is that users send pure data to a WEB server and receive more pure data.
The second principle of AJAX is that the user coordinates the operation itself, which skips over the host browser and its single page request/response mechanism.
The third AJAX principle is that client code is fully responsible for updating the user interface with pure data received from the server.
This column lays the groundwork for developers who are prepared to completely get rid of defensive AJAX implementations, which represent partial rendering. Partial rendering is a way to implement some AJAX functionality while in the Web forms architecture. The AJAX model is based on a new principle that requires a new design pattern.
The impact of AJAX patterns
asp.net partial rendering is a very intelligent addition, which belongs to the traditional Web forms postback model. In short, a partially rendered page has exactly the same postback architecture and page lifecycle as a non-AJAX page (see Figure 1). The difference is that the listener at the client only blocks the browser's default action (form submission) and replaces it with a XMLHttpRequest-guided HTTP request (see Figure 2). This approach not only saves the user's full-page refresh time, but also saves the time the developer spends on new architectures and new mode training.
Figure 1 Traditional full-page postback operations
Figure 2AJAX XMLHttpRequest Partial rendering