AJAX "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML) is a technique used to create fast dynamic Web pages.
1.0 Advantages:1.1 improves the user experience through asynchronous mode.1.2 optimizes the transmission between the
Related articles: PHP JSON data creation and resolution program codeJSONP (JSON with Padding) is an unofficial protocol that allows the server-side integration script tags to be returned to the client and Cross-domain access through JavaScript
Using jquery for easy access to Ajax asynchronous data, the following example is an AJAX feature similar to the type user name
jquery.post (URL, [data], [callback], [type]): asynchronous request using POST method
Parameters:
URL (String): The URL
The original written program to the jquery mobile implementation found that there are a lot of problems, the process can not go on, the reason for this phenomenon is likely to and mobile processing mechanism of the mobile library will be all the
Question One,
Web site A function, using jquery to update a parameter, another use of a $.get method to get the updated value, in IE the second start will fail.
The final problem is that IE used the local cache's last get return result to respond
Briefly describes the load (url,data,function (RESPONSE,STATUS,XHR)) parameter descriptionThe URL stipulates which URL to send the request to.Data is optional. Specify the data to be sent to the server along with the request.function
Let's look at the demo code first.
The code is as follows
Copy Code
"http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd "" ajax json test ajax uses JSON for front and back interaction Get all user
Now the popular thing microblogging is the Internet play more fire things, today we have to use Sina app to achieve the designated micro-blog account of the microblogging content recording method. Hope to help you.
Sina Weibo app development
JS Original Ecological Writing
The code is as follows
Copy Code
var mm;var nn;function MakeRequest (url,obj,b) {Mm=obj;Nn=b;Http_request = false;if (window. XMLHttpRequest) {Http_request = new XMLHttpRequest ();if
jquery Ajax No Refresh data submission instance
name "this field is required.
return emailthis field is required.
return phone"this field is required.
You may notice that I have included an ID contact_form the div around the entire form of
Ajax in the operation of the DOM depressed for several days, today finally understand, self-study is bitter ah, bitter a runny nose a tear, the lesson to come out, give a wake up, veteran will not look.
The operation of XML in 1.DOM does not mix
aien,i@ruboy.com,1034555083Ajax (A,B,C,D,E,F,G);Parameter description: A-request method; B-Request address; C-requested data, A is valid for post; D-callback function, the This reference within the function is a XMLHTTP object; E is asynchronous,
Author: driseAsp:Response. ContentType = "text/html"Response. Charset = "GB2312"Php:Header ("Content-type: text/html; charset = gb2312 ");//Other methods are similar.As long as you set the encoding based on your own page, there is generally no
How AJAX thumb ups are implementedYou can use custom fields to save the number of likes, and use cookies to disable repeated likes.WordPress does not use plug-ins to implement the AJAX thumb up processWe directly add the following code to your
A general ajax event may have already written a success during the development process. In subsequent development, I may not want to change the success method I wrote earlier. I want to restart a success, for example, the following code: The code
Jquery encapsulates three layers of ajax:Layer 1: $. ajax, Layer 2:. load $. get, $. post, Layer 3: $. getScript, $. getJsonFirst, let's learn how to use. load:Format: load (url [, data] [, callback]) The simplest get method to get text content
Commonly used ajac in jquery includes $. ajax (), $. post, $. get (), $. load.Example The code is as follows:Copy code $. Post ("test. jsp ",{Name: "cssrain", time: "2008/01/21"}, // data to be transmittedFunction (data ){Alert ("returned data:"
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.