Onreadystatechange event
When a request is sent to the server, we need to execute some response-based tasks.
When the readystate changes, the onreadystatechange event is triggered.
The readystate attribute contains the status information of
InProgramThe twebbrowser control or the Indy control is used to connect to a webpage using Ajax technology. The source code of the webpage does not contain any updated content from the client. In the IE browser, you cannot view the source file and
As we all know, Asynchronous interaction, JavaScript scripts, and XML Data encapsulation are three main features of Ajax. In fact, in actual application, there is no need to stick to these three rules. In my opinion, Ajax-X, that is, removing
Ajax. updater Application Through this JS class library, AJAX technology will be easily appliedAjax. updater ApplicationNew Ajax. Updater ('id', "url", {options });Id: id of the target to be updatedUrl: the operation you want to perform, or
/**
* The first Ajax submission method
* In this method, you must directly use the ext Ajax Method for submission.
* To use this method, you need to encapsulate the parameters to be passed.
* @ Return
*/
Function saveUser_ajaxSubmit1 (){
Ext. Ajax.
Function ajaxreq ()
{
VaR url = NULL; // address of the server processing page
VaR reqresult = NULL; // results processed by the server
VaR rdstate = NULL; // status information
This. dosendresuest = function (_ URL)
{
Url = _ URL;
VaR XMLHTTP =
$ (Selector). load (Url [, date] [, callback])
Url: the url of the Request page.
Date: key: value data sent to the server
Callback: the callback function when the request is complete. no matter whether the request is successful or fails, it is
After learning this, let's take out what we need to say in this process.Let's talk about the version. On the author's website, it is said that ajax.net is no longer developed, and an open-source version is developed based on its version, it mainly
To implement ajax calls in webService, add the following code:
// To allow ASP. net ajax to call this Web service from a script, cancel the comments to the downstream.[System. Web. Script. Services. ScriptService]
Code download
Code
Code
The XMLHttpRequest object is used to exchange data with the server. Send a request to the server
To send requests to the server, use the open () and send () Methods of the XMLHttpRequest
Previously, I wrote an ajax application to submit it to the ashx General handler! Then a new ashx page will be created! You can also submit it to the current page to avoid creating a new ashx! However, submitting to this page is equivalent to
1. Install ASPAJAXExtSetup (ASP. NET Ajax extension)
2. Install ASPNETAJAXVS2008 (for the VS 2008 Ajax extension, if it is VS2005, install 2005. Both of them can download the latest version at http://ajax.asp.net)
3. Install Quickpart
Get: The value is less than 1 kb, so the efficiency is high and the security is low because it will produce cache (garbled code will be generated. The following code hasn't solved this problem yet)
Code highlighting produced by Actipro
Ajax is to be learned. Take notes.
Example above
Txt file content in the root directory: apple banana pear
The html code is as follows:
1 2 3 4 5 27 28 29 30 31 32
Display result:
End now!
I recently learned about AJAX technology. AJAX refers to Asynchronous Javascript and xml. The basic principle is that the page uses Javascript to send an asynchronous http request to the server. After the server returns data, it uses Javascript to
I am using the prototype js library! So I brought this information. If you don't know proto, you can go to the garden to find relevant information!
First, add the shopping cart stuff to store the shopping cart. I used session to store the Arraylist
Recently, a large file upload function was used for website creation. That is to say, the form element is uploaded through the INPUT file. This function supports uploading files of any size in bytes and displaying the upload progress in the browser.
Ajax. Net calls Session and Cookie in the background are quite special and should be written as follows:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Cookie:HttpContext. Current. Response.
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