Learning rest together (7) -- Ajax and rest

Source: Internet
Author: User

Original address: http://rest.elkstein.org/

Learn rest: a tutorial

A fast-training courseRest-
Re
PresentationalSTateTRansfer, a new approach to systems architecture and a lightweight alternative to Web Services

Rest-transition of expressive state-quick learning tutorial, a new system architecture method that can replace the lightweight Web service protocol.

_______________________________________________________________________________________

Ajax is a popular Web development technology that uses JavaScript For web page interaction.

In Ajax, the XMLHTTPRequest object is used to send requests to the server, and the JavaScript code dynamically changes the current page according to the response.

In most cases, Ajax applications comply with the rest design principles. Every XMLHttpRequest can be regarded as a rest service request, which is sent through get. The returned results are typically in a format supported by the JSON--REST (refer to the previous rest server responses)

In order to make your Ajax application truly restful, according to the standard rest design principles (discussed later), you will find that most of them benefit from good design, even if you don't think your architecture is in line with rest.

The following section provides the sample code issuing HTTP requests in Javascript. However, you should be familiar with Ajax programming experience.

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.