Web2.0 turned out, Ajax first, today do the Web if you do not learn some Ajax words, it is out of date, and learn the use of AJAX environment if it is asp.net, then ajax.net you have to learn. The first is the configuration of the environment, as
The XMLHttpRequest object is the basis of Ajax and is also used as the underlying base in jquery.
XMLHttpRequest Objects
The XMLHttpRequest object provides full access to the HTTP protocol, including the ability to make POST and head requests and
URL: The requested address is sent for a string type parameter, which defaults to the current page address.
Type: A parameter of type string is required, and the request method (post or get) defaults to get. Note Other HTTP request methods, such as
JQuery Ajax Full resolutionThis article short address: http://s8.hk/156
This article address: JQuery Ajax full resolution
The author of this article: Qleelulu
Reprint please indicate the source.
jquery is really a nice lightweight JS framework that
Ajaxgold is also a very short and useful AJAX framework that provides four methods for developers to invoke, respectively, Getdatareturntext (Url,callback); Getdatareturnxml (Url,callback); Postdatareturntext (Url,data,callback); Postdatareturnxml
Get and POST requests are different:
1, to the server to pass the amount of data:
Get up to 2k
Post is not limited in principle, php.ini is limited to 8m
2, the transmission of data in a different form:
Get passes parameters in the form of a request
An interface call method was written in the recent project, resulting in an error http-415 (Unsupported media type)
After detection is the Ajax commit, the ContentType default type is mistaken.
The Ajax method parameters in jquery are documented
Ajax.html
User name: Password:
check.php
XMLHttpRequest status = 0 issue.Xmlhttp.readystate =4 The time, has been xmlhttp.status. = 200. Then the output, found in the Xmlhttp.status=0,http protocol but not the status code.
When using Ajax to pass data, the data is usually organized into Data= "Var1=abc&var2=def". When there is a plus (+) or connector (&) in the data, there is some data loss when the server receives the data.
Analyzing the format of the Ajax
Features:
1. Realize the user registration function;2. Implementing an existing user name cannot be registered;3. User name, password non-null authentication;4. Password confirmation; User Registration Interface register.html
user registration
Tag: Ike server error URL www redirect LAN benefit str requestWhat is Ajax? What is the role of it? What are the benefits of this process? How to set the request header???????? ( hehe, don't know please look down oh ): 1) What is Ajax?Ajax,
I use the latest DataTables-1.10.15 version of the official website, I personally encountered a lot of problems in the use of the process, there are some data display problems, there is a request unknown parameter xxx for row:,There is a refresh
The 415 (Unsupported media type) error is always returned when data is passed from the page to the background via Ajax, and the data is not available in the background. As shown in the following:
In trying to solve this problem, we first have
My back and forth, not the API, not the Ajax, I'm just here to discuss the HTML and backend combinationPrevious wordsOnce rage Dedecms believe that do the site of ten eight or nine know, there are some not technology-born people, by looking at
JQuery AJAX and jqueryajax
I. Why JQuery AJAX?
Because in the Development of AJAX in traditional (js), AJAX has two main problems:
For browser compatibility issues, writing AJAX code is too troublesome and many of them are the same.
In actual
Four steps: easily implement ajax to send asynchronous requests, and four steps: ajax
Ajax sends asynchronous requests for your reference. The details are as follows:
Step 1(Get XMLHttpRequest)
Ajax actually only needs to learn one object:
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.