Ajax TechnologyAjax = asynchronous JavaScript and XML.Ajax is a technique that can update parts of a Web page without reloading the entire page.1. The load () method of jqueryThe JQuery load () method is a simple but powerful Ajax method.The load ()
AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML)One, Ajax parameters1.url:Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default).2.type:A parameter of
Message this type of status code, on behalf of the request has been accepted, need to continue processing. This type of response is a temporary response that contains only the status line and some optional response header information and ends with a
1.url:Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default).2.type:A parameter of type string is required, and the request method (post or get) defaults to get. Note Other
All options are optional and the following is a brief description of each option1.asyncThe default is true, which is the request for an asynchronous request, which is the meaning of Ajax presence. However, you can also set this parameter to False to
A, $.get (Url,[data],[callback])Implementing the Get MethodDescriptionURL (String) to send the requested URL address.Data (MAP) (optional parameter) to be sent to the server, expressed as a Key/value key-value pair, is appended to the request URL as
There are many ways to implement asynchronous refreshes, or you can use the various frameworks of JS, the following is the AJAX framework to implement the authentication of the user name existsJquery.ajax OverviewHTTP requests to load remote
Part of hypertext Transfer Protocol--http/1.1RFC 2616 Fielding, et al.10 Status Code rule (status code definitions)This article describes the relevant rules for each status code, including the method to be followed by the corresponding status code
1$(function(){2 $.ajax ({3URL: "http://www.microsoft.com",//the requested URL address4DataType: "JSON",//Receive JSON format data5Asynctrue,//If the request is asynchronous, it defaults to Async, which is also an important feature of Ajax6data:{"id"
$ (items). each (function () {Item}) ,While the latter$.each (Items,function (I,item) {Write your code})-----------------jquery Ajax----------------------jquery Development Ajax is relatively simple to use for reference [Qleelulu Ajax
Ajax Introduction What is AjaxAJAX(asynchronous JavaScript and XML) is translated into Chinese as " asynchronous JavaScript and xml." Even if you interact asynchronously with the server in Javascript, the data transferred is XML(of course, the data
jquery is a very good lightweight JS framework that can help us to develop JS applications quickly and, to a certain extent, change the habit of writing JavaScript code.Let's take a look at some simple methods that encapsulate Jquery.ajax () to make
Ajax method parameters in jquery are always remembered, here is a record.1.url:Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default).2.type:A parameter of type string is
Name of parameter
Type
Describe
Url
String
(Default: Current page address) sends the requested address.
Type
String
(Default: "Get") The Request method ("POST" or "get"), the default is "get".
1.url:Requires that the requested address be sent as a parameter of type string (the current page address is assumed to be the default). 2.type:A parameter of type string is required, and the request method (post or get) defaults to get. Note Other
URL: The requested address is requested for a parameter of type string, (the current page address is assumed to be the default).Type: A parameter of type string is required, and the request method (post or get) defaults to get. Note Other HTTP
URL: The requested address is requested for a parameter of type string, (the current page address is assumed to be the default).Type: A parameter of type string is required, and the request method (post or get) defaults to get. Note Other HTTP
Tag: Byte customer is required to be locked conditional decomposition function according to status code
Status Code
meaning
100
The client should continue to send the request. This temporary response is used to
About the name of AjaxThe full name of Ajax is asynchronous JavaScript and XML, where asynchronous is asynchronous and differs from the way in which traditional web development uses synchronization.About synchronous and asynchronousAsynchronous
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.