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
%>