Robust AJAX Source Learning application Example

Source: Internet
Author: User
Tags object copy error code
Ajax|ajax Source | sample | Application Example

This sample mainly demonstrates how to manipulate xmlhttprequest ...
XMLHttpRequest Introduction
To truly realize this magnificent miracle, you must be very familiar with a JavaScript object, that is, XMLHttpRequest. This small object has actually been in several browsers for some time, and it is the core of Web 2.0, Ajax, and most of the rest of this column that will be introduced in the next few months. To give you a quick overview of it, here are a few of the few methods and properties that will be used for that object.
Open (): Creates a new request to the server.
Send (): Sends a request to the server.
Abort (): Exits the current request.
ReadyState: Provides the ready state of the current HTML.
ResponseText: The request response text returned by the server.
Client-side HTML code:
[Copy this Code] CODE:


Please try to enter my QQ number: 178010108, you will see the detailed information returned .

Server-Side program code:
[Copy this Code] CODE:
<%
Response.ContentType = "Text/xml"
Response.Charset = "GB2312"
If Request ("QQ") = "178010108" Then
Response.Write "178010108| Arisisi | ASP Technology "
Else
Response.Write "This QQ number is the empty number Oh"
End If
%>



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.