Ajax Basics (i)

Source: Internet
Author: User

Ajax:

XML: Extensible Markup Language, markup customizable
JSON: Object-like language
Function:
Interacting with data in different languages
The disadvantage of XML: 1, too much code writing content
2, data extraction is more cumbersome

ASHX: General handler, its inheritance level
is higher than the Web form level, but features
Relatively few.

------------------------------------------------------
However, Ajax is not a hint to write, must be careful

Json:
You can put it into a string, it's fixed format:

{"username": "Zhangsan", "Password": "1234", "nickname": "Zhang San"}


Just don't want to let the page refresh, because it is annoying
Using JS to realize the interaction between data and database

Use JS to submit the data to the server, the service end is finished, and the data back to JS,
JS will return the data back to the page update, will not refresh the page


JSON returns a bunch of object data:
[{"Name": "Zhangsan", "pwd": "1234"},{"name": "Lisi", "pwd": "12345"}]

-------------------------------------------------------------------------
Ajax writing BASIC structure:

General handlers:



Ajax Basics (i)

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.