Asynchronous, JS request, Ajax three?

Source: Internet
Author: User
This post was last edited by u010572351 on 2013-08-27 17:17:56


1. Async is Ajax, right?

2.

Just a little confused about this thing, he made a request to PHP file, he is not Ajax? When do you use him? What is the difference and connection between him and Orthodox Ajax?


Reply to discussion (solution)

Ajax can have triggering events

The script form load loads directly on the

Ajax can have triggering events

The script form load loads directly on the
Is that the difference?

The first one is a method of JS, the second is JS loading.
No second, which comes first.
You can also use the second to achieve the first.

Simply put, async just doesn't wait to return

Ajax can return any data: XML, Text, JSON, JS scripts
Named when the contract returns XML, now expands the

Script SRC can only accept JS script
You can also load dynamically

is available
document.getElementById (' js '). src = ' b.php?x=123 ';
Load the required scripts
JSONP is the use of this to achieve cross-domain

AJAX = asynchronous JavaScript and XML.
AJAX is a technique for creating fast, Dynamic Web pages.
AJAX enables Web pages to be updated asynchronously by exchanging small amounts of data in the background with the server. This means that you can update a part of a webpage without reloading the entire page.
Traditional Web pages (without AJAX) if you need to update the content, you must reload the entire page surface.


Load remote PHP files across domains

Ajax is a way of calling asynchronously, preferably with JQ, because it takes into account the issue of multiple browser versions

  • 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.