Finally understand Ajax pull

Source: Internet
Author: User
Ajaxpro was used all the time. Now I want to see what is at the bottom of Ajax. Use prototype. js to write Ajax. Hard to understand for two days
Today, I finally realized it. That's all.
Script Type = "text/JavaScript" src = "../JS/prototype. js"> </SCRIPT>
<Script language = JavaScript>
Function ()
{
Url = 'default3. aspx ';

New Ajax. Request (URL + '? Id = XXX', {& <60; Method: 'get', & <60; onsuccess:
Function (Transport)
{
Alert (transport. responsetext );
}

});

}
ThisCodeAccess URL. Use the get method. The returned result of this method is actually the HTML page generated by the URL page. Sorry, I have been dizzy for two days. Khan. No wonder that a page like a URL has only one header in Asp.net and other HTML is deleted. Is to let the background output desired results and the corresponding form. Of course, most of them are in HTML format. Of course, there is also a little simple to directly return a string. Haha

This document uses the unregistered version of blog_backup for export. Please register with soft.pt42.com.

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.