Example Description:
The code is as follows
Copy Code
EmailAddress Return content after post
ajax.php Code:
The code is as follows
Copy Code
$name =$_post["name"];if ($name = =
It is no problem to save $ (this) to a variable before calling the function and then use it in the callback function.
The code is as follows
Copy Code
$ (document). Ready (function () {$ (". Del"). Click (function ()
First know to Jquery.post (URL, [data], [callback], [type])
Describe the parameters:
URL: Sends the request address.
Data: Key/value parameter to be sent.
Callback: callback function when sending success.
Type: Returns the content format, XML,
The Ajax () method loads remote data through an HTTP request.
The approach is the jQuery-bottom AJAX implementation. Simple and easy-to-use high-level implementation see $.get, $.post, etc. $.ajax () returns the XMLHttpRequest object that it
For security reasons, browsers typically restrict cross-domain submission of data in AJAX applications, but this is precisely the most common requirement. For example, on a a.com page to submit some request data to the B.Com server, B.Com Server
Automatic refresh of the Web site has been a common occurrence, such as real-time news information, stock information, etc., need to constantly get the latest information. In the traditional way of web implementation, want to achieve similar effect,
Ajax
The word Ajax is no stranger to web developers, and now it's probably about the following points:
• No refresh change page data
• Asynchronous communication
$.ajax, $.get, $.post
Asynchronous Javascript and XML
•...
Ajax is an
In jquery, there are three ways to implement Ajax: $.ajax (), $.post, $.get ().
First we look at $.get ():
The code is as follows
Copy Code
$.get ("test.jsp",{name: ' Cssrain ', Time: ' 2008/01/21 '},//data to be
When jquery 1.5 is released, it adds a method Jquery.when (). You can handle multiple AJAX requests at a time. See the jquery API documentation for more details.Collection by Ancker
Jquery.post (URL, [data], [callback], [Type]): Asynchronous
We continue to modify the user data, modify the user data, first of all we need to do is, first show all the user information.The latest structure of the website, the following with the arrow callout is today added a few new files.
showstudent.
Ajax asynchronous data Operation detailed
Ajax is all called "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), a Web development technology that creates interactive Web applications.
Mainly includes the following technologies:
。 The series API knows that the IE10 preview is not yet supported, and the latest version of Firefox/safari/chrome/opera supports
0
0
Development should be based on the requirements of the combination of the above forms
Create an available Xmlhttpreuqest object
XML document Data
A simple ASP output XML example, Later in our Ajax tutorial example, we will use this file for data read operations html css Tutorials dom javascript
Simple HTML code, saving ajax.html. The code is as follows:Copy code ); return false; "> View all Reference jquery. js and date. F-0.5.0.js (json date conversion) The code is as follows:Copy code Function ViewMsg (id ){$. Ajax ({Type: "
Today, I just got an asp ajax message board. I 've been learning php for a long time, but I haven't done asp yet. I'll take a look at it today. the following is a brief introduction of the design philosophy of the message board. Because it is very
Pass Chinese parameters, and then modify the database tutorial. The code is as follows:Copy code The parameter is Chinese. encodeuricomponent. This method must be called twice.*/Function utf8rawurldecode ($ source ){$ Decodedstr = "";$ Pos = 0;$
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.