Use jquery to send AJAX requests, which are normal under Google's browser, but fail under IE, and the first code is this:
The code is as follows
Copy Code
This code is measured in Google Browser normal, under
Fill in the data to be updated No refresh Save
?sava.php file
mysql tutorial _connect ("localhost", "root", "root") or Die (' Database Server Uid or Password error! '); mysql_select_db (' IP ') or die (' Data! '); mysql_query ("Set
It is not surprising that today's Web sites have asynchronous requests and even many asynchronous requests in a Web page. Ajax has become the basic function of the site now, making Web applications closer to desktop applications.
However, no matter
A lot of data have said that the parameters of the Get method are limited, the length of the parameters of the Post method is unlimited, which is also the advantage of the post compared to got.
Using the Post method in Ajax, the normal parameter
Nonsense not to say more, directly to everyone to paste the code, the specific code as follows:
$.ajax ({url: "/business/findpersons.json", DataType: "JSON", type: "Get", Success:function (Doc) {var objs=eval (doc); fo R (var i = 0; i " + "" +
Front.
Ajax is shorthand for asynchronous JavaScript and XML, the Chinese translation is asynchronous JavaScript and XML, this technology can request additional data to the server without unloading the page, will bring a better user experience.
Ajax Tutorials
AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML).
AJAX is not a new programming language, but a new way of using existing standards.
AJAX is the art of exchanging data with the server and updating parts of
Ajax (Ajax development)
Ajax, "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), refers to a web development technology that creates interactive Web applications.
AJAX = Asynchronous JavaScript and XML (a subset of standard
AJAX is a technique for exchanging data with the server, and it can be used to update part of the page in the context of the entire page.
4 Common ways to request Ajax in jquery:
1.$.ajax () returns the XMLHttpRequest object that it created.
Introduction to Ajax:
Ajax, "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), refers to a web development technology that creates interactive Web applications.
AJAX = Asynchronous JavaScript and XML (a subset of standard generic
This example for you to share the Laypage front-end paging plug-ins, Ajax asynchronous paging, get the JSON data implementation without refreshing paging for your reference, the specific content as follows
function GetList (pageIndex) {var
A problem with JQuery Ajax is that there are special characters in the parameters, such as & ' #@, which can cause problems when executing Ajax, because the parameters that are passed are changed. Look at the example and you'll see:
Programme I:
The example of this article for everyone to share the Web page in the use of Ajax to achieve the bulk import data function of the implementation method for your reference, the specific contents are as follows
url.py Code:
Copy Code code as
For example, html code is very simple Here, the status information is displayed in html, because ajax will replace the content, to prevent loading delays, we can provide some logon instructions by default. The code is as follows:Copy code
The reason is that there are multiple similar asynchronous request actions on the page. Based on the principle of improving code reusability, I encapsulated a function named getData, which receives different parameters, only obtains data and returns
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service