Ajax may not be a strange thing for us, but if you are a Cross-domain request, then Ajax has nothing to do, in fact this can be made up, is the use of JSONP. In fact, is not what technology, but the use of JS tags in the cross-domain characteristics
Ajax in a variety of browsers to achieve a perfect cross-domain needs with the help of JSONP technology, JSONP Essence is to request a JS script file, in the JS file load completed when a function, so you can perfect the rule cross-domain problem.
URL submission data is actually the get () method in Ajax
$getURL (String): The URL address where the request is sent.Data (MAP): (optional) The information to be sent to the server, expressed as a Key/value key-value pair, is appended to the
Yesterday encountered a problem such as:
IE Browser, Web site can not log on and exit normally.
That's weird. The previous comparison ignores ie. Using Firefox google test is good.
After repeated investigation, finally found the problem.
I am
$pinyins = Array ();When the phonetic ishead=0 of a string of Chinese characters is obtained, the output pinyin first letter when outputting the whole phonetic ishead=1function Getpinyin ($str, $ishead =0, $isclose =1) {Global $pinyins;$restr =
can achieve the same effect, this example is relatively simple, for beginners to learn jquery ajax function of a friend still have some help, and more to do their own to try
ajax_load.html I am Liyun, jquery is very useful!
JQuery AJAX,
Posted from http://baike.baidu.com/view/1641.htm
I reproduced a part of the original article, mainly the content of the introduction.
Ajax is all called "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), a Web development
Spent three head, repeatedly check, found that the original is changed processing page return header information.With the Application/x-javascript, IE8 no work.If it is text/html, it is OK, or it is not specified.Is it a bug? Let me say hello to the
Ajax. innerHTML Processing
JavaScript code Analysis
First of all, this needs to be sent three times, so we write the reusable code into a function, the task of which is to set the XMLHttpRequest object and initialize the necessary attributes. The
Baidu and Google seem to have been doing this for many years. I thought it was easy to find code on the Internet to achieve this effect. We can't find this requirement. Therefore, I wrote this result by myself. Because I integrated the effect into
Several ajax requests in jquery, including the underlying method $. ajax (), Layer 2 load (), $. post (), $. ajax (), Layer 3 $. getJSON (), $. getScript (). The code is as follows:Copy code
When you use ajax to pass a value to the server, if the value contains special strings such as + and &, the results obtained on the server may be different, these characters are used for other purposes. For example, "+" indicates a connector. After
When jquery and ajax are used together, they should be $. get and $. post. The usage is simple: url + parameter + callback function + return value type.Before that, summarize the differences between. load and $. get $. post:. Load: local effect ,.
Although the current access volume has been relatively low, there is no server pressure problem, but I have always paid attention to user experience, of course, cannot give up such an opportunity to improve user experience. I took a leave of time
Click "change" to randomly change the content.Because there are "standard", "image", "video" and other article forms, here we need to randomly obtain an article in the form of images, and take out the pictures, and links, use ajax to replace the
For example, if you click "Change" next to the logo on each page of this site, ajax will dynamically load one, using the built-in ajax method of wordpress. The following describes how to use the built-in ajax method of wordpress:1. Add html and js
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.