Understanding synchronous interaction and Asynchronous interaction For example: Normal B/S mode (synchronous) Ajax technology (asynchronous)* Synchronization:
When you submit a request, wait for the server to process it, and return
Advantages:Reduces the burden on the server, obtains data as needed, and minimizes redundant requests.Partial refresh reduces the waiting time and brings a better user experience.XML-based standardization, widely supported, and plug-ins not
Recently, I found that I used ajax to access the background and IE8 to access the background. For the first time, I can return a normal return value. I will not execute the background and will always return the first access result.It's okay to use
Dom implementation in Javascript allows us to perform Dom operations on HTML and XML data through JavaScript code in Ajax, so as to dynamically modify and update pages and extract data. Dom concepts The Dom Document Object Model allows programs
Add a mask to the scroll bar. You must adjust the path of the scroll bar image.
Function loading (){VaR divloading = " ";
// $ ("Loadingdiv" mirror.css ({"Z-index": "-10", "opacity": "0.5 "});
$ ("Body"). prepend (divloading );
}
Disable
Paste the sample code, which is valid in IE (sogou is ineffective), and others are not tested.
The getdate. ashx page only returns the server time, which is useless. The Code is as follows:
Public void processrequest (httpcontext context
I. What is Ajax?
Ajax (Asynchronous JavaScript and XML) Asynchronous JavaScript and XML, through interaction with the back-end interface, achieve partial page refresh.
Ii. Ajax principles
Ajax interacts with the server through XMLHttpRequest (all
Atitit. Ajax bp dwr 3. annotation configuration process summary .....
1. Download DWR. Jar 1 M 1
2. Configure the annotation method... web. xml 1
3. class configuration 2
4. Test and view published method 2
5. Import to page 3
6. Use in JS
1 var user = form. Name. value; 2 var Password = form. Password. value; 3 var url = "chkname. php? User = "+ User +" & Password = "+ password; // previously, I only knew That Ajax was used to detect the user name. In the past, I could also detect
1-differences between Ajax Status values and Status Codes
The Ajax status value refers to several States that have been used to run Ajax. no matter whether the access is successful or not, the response steps can be understood as Ajax running steps.
Ajax supports two data submission methods: Get and post. The post method can transmit data larger than 2 K. The differences in Ajax applications are: "the request address of the POST method and the transmitted data are put in two objects-the request
A dynamic table implemented by Ajax allows you to add data rows, delete data rows, and copy rows in a timely manner. data can be copied or submitted regardless of whether data exists in the row, but you need to work with your submission page. It is
The design is a little more complex. Completing the Ajax reading function involves many pages. Even so, it feels more flexible.
The only difference from the traditional method is that there is an additional layer of Data container control, which
A problem occurred during project creation. When Ajax initiates an action and triggers the interceptor, the returned value will not initiate a jump if it does not receive the same result, the POS form t can be used for submission.
After a long
member logon hello {$ user_info.username} welcome to our store & nbsp; member logon User Name: password & nbsp; code: & nbsp; {literal} function signin () {var FRM = document. forms
What Is Ajax?
Ajax is "Asynchronous JavaScript + XML" (Asynchronous JavaScript and XML), which is a Web page development technology used to create interactive web applications. It can quickly obtain the required data and content from the server, and
Ajax is built on the Dynamic HTML (DHTML) technology, including the following common technologies:
Javascript: Javascript is a scripting language that is often used in client web applications.
Document Object Model (DOM): Dom is a standard object
The simplest difference:
1. When a Get request is used, the parameter is displayed in the URL, but the Post method is not displayed.
2. A small amount of data is sent using the Get request, and a large amount of data is sent using the Post request.
3
For example:Copy codeThe Code is as follows:Context. Response. ContentType = "application/json "; Copy codeThe Code is as follows:Context. Response. ContentType = "application/Json "; Are they the same?The front-end code is as follows:Copy codeThe
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