Leading technology: Single-page interface and AJAX mode

Source: Internet
Author: User
Tags http request implement requires

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.