Click the link to join the group "Java EE (ssh+intellijide+maven)": http://jq.qq.com/?_wv=1027k=L2rbHv $.ajax ({url: "Address to access", async:false,//nesting when it is better to add this, otherwise prone to problems, My is here is a problem, the outer layer should not matter, the inside must add data: "parameter name = parameter value", success:function (msg) { $.ajax ({ url: "Address to visit", async:
to find the elements with the container ID. This element, along with its content, will be inserted into the element with the result ID, and the rest of the retrieved documents will be discarded.
Jquery uses the browser's. innerhtml attribute to parse the retrieved document and insert it into the current document. In this process, the browser often filters out elements from the document, such as
Note: Due
Summary of common methods for jQuery to call ajax requests, and summary of jquery to call ajax
This example summarizes the common methods for jQuery to call ajax requests. Share it with you for your reference. The details are as f
JQuery is a JavaScript library that helps simplify JavaScript™ and asynchronous JavaScript + XML (Ajax) programming. Unlike a JavaScript library like this, JQuery has a unique rationale for succinctly representing Common, complex code. Learn the basics of JQuery, explore its features and capabilities, perform some comm
not need to be converted.
1 $.getJSON("dep.do?p=getAllDep",{x:Math.random()},function(arry){2 for(var i=0;i
Other functions of jquery:
Load Static pages
Load (URL, [data], [callback]);URL (string) URL of the requested HTML pageData (MAP) (optional parameter) Key/value data sent to the serverCallback (callback) (optional) callback function when the request is completed (success is not required)
The load () method can easily Load Static pa
Directory (updated articles will be connected, and an article will be updated every two to three days starting from March 13, July 25 ):
ASP. NET + jquery. Ajax details 1-opening section (published on February 25)
ASP. NET + jquery. Ajax details 2-$. Load (published on 2012.07.26)
ASP. NET +
i=0;iSome of the other functions of jquery:Loading static pagesLoad (URL, [data], [callback]);URL address of the URL (String) of the requested HTML pageData (MAP) (optional parameters) sent to the server Key/valueCallback (callback) (optional parameter) callback function when the request is complete (does not need to be success)The load () method can easily load static page content into a specified jquery object.$ (' #
data format is of JSON type);
Three, $.ajax (Opiton)
Description: $.ajax () This function is powerful, you can do a lot of precise control of Ajax, you need to specify the relevant information to refer to$.ajax ({url: "ajax/ajax_selectpictype.aspx", Data:{full: "Fu"},type
JQuery uses $. ajax and checkbox to implement the function of not notifying users next time. jquery. ajax
To implement a function on the XXX platform, use the check box settings on the announcement pop-up page to no longer notify such announcements.Principle: 1. jsp page
2. js Code
Function noTips () {var formParam =
',
6 success:
CallBack,
7 Error:
function
(er) { C11>8
backerr (er);}
9 });
Thu, $.getjson (Url,[data],[callback])Description: The $.getjson (Url,[data],[callback]) function does not have a type parameter, the JSON type is returned, and no conversion is required.1 $.getjson ("Dep.do?p=getalldep", {x:math.random ()},function(arry) {2 for (var i=0;i) {3 varnew Option (arry[i].deptname,arry[i). DeptID); 4 document.getEl
',6success:callback,7 Error:function(er) {8backerr (er);} 9 }); Thu, $.getjson (Url,[data],[callback])Description: The $.getjson (Url,[data],[callback]) function does not have a type parameter, the JSON type is returned, and no conversion is required.1 $.getjson ("Dep.do?p=getalldep", {x:math.random ()},function(arry) {2 for (var i=0;i) {3 var New Option (arry[i].deptname,arry[i].deptid); 4 document.getElementById ("DEP"). Options.add (OP); 5
jquery.
There are some of the rest, almost useless, not tidy up. 3. Tracking StatusBased on the readystate attribute defined by the XMLHttpRequest object, jquery encapsulates the state of the server response in an asynchronous interaction, providing 6 response events to further refine the tracking of the entire request response proc
This article will show you the philosophy of jquery, explore his features and features, and do some Ajax examples and how to use Plug-in (Plug-ins) to extend jquery.
1. What is jquery?
jquery is a very good JavaScript library, it was born in 2006, from the hands of John
JQuery AJAX $. ajax () methodAJAX = Asynchronous JavaScript and XML.AJAX is a technology for creating fast dynamic web pages.AJAX allows asynchronous updates on webpages by exchanging a small amount of data with the server in the background. This means that it is possible to update part of the webpage without reloading the whole page.The
After AJAX became popular, I always wanted to learn about it. However, it is difficult to choose many frameworks. Note that ASP. net ajax is not included in the AJAX framework.At the beginning, I learned JQuqery, and many $ get (),... and so on have already fainted me. Give up now.Later, I learned about ASP. net ajax.
What is AJAX?
AJAX = asynchronous JavaScript and XML.
AJAX is a technique for creating fast Dynamic Web pages.AJAX allows Web pages to be updated asynchronously by exchanging small amounts of data in the background with the server. This means it is possible to update part of a Web page without overloading the entire page.
the response information received from the server.
View sourceprint?01 function onreadystatechange () {
var data=null;
if (req.readystate==4) {
04
if (req.status==200) {
Data=req.responsetext;
Modified} else {
Data= "Loading ..... ["+req.readstate+"] ";
09}
10
11}
12.. Here you can do some operations related to this return information, such as output information.
13}
The ResponseText property of the XMLHttpRequest object is used in the preceding code to get the data in the response as a text st
AJAX = asynchronous JavaScript and XML.AJAX is a technique for creating fast, Dynamic Web pages.AJAX allows Web pages to be updated asynchronously by exchanging small amounts of data in the background with the server. This means that it is possible to update part of a Web page without overloading the entire page.There are many methods of Ajax submissions provided in the
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.