The use of the Ajax Post XML method
function PostData (url,posteddata){var xmlhttprequest= createxmlhttprequest ();Call the encodeURI method two timesPosteddata = encodeURI (Posteddata);Posteddata = encodeURI (Posteddata);var url = URL;Sending a
There are two subdomains, a.xx.com and b.xx.com, now I send an AJAX request in a.xx.com a page b.xx.com a method in a controller, want to get the return data, but return state 302, should be a cross-domain problem unresolved.
One way to solve the
First, the XMLHttpRequest of the original ecology
The code is as follows
Copy Code
" method= "POST" >
Two, jquery Ajax.post
1.jQuery $.post () method
The $.post () method requests data from the server via an
Ajax registration Verification, today this article is a bit strange, is to verify that the URL can be normal access Oh,
Blog Address:*
The above is a simple HTML code program. The following is a PHP validation code.
if ($ta ==0) {if
Ajax validation Article I have written a lot of oh, I'll write an Ajax to check the user name tutorial, all posted up.
Here is the interface effect picture, we mainly have three articles a reg.php inside almost is the HTML code, one is the
How to send a XMLHttpRequest retrieve HTML header data
The header resource returned by the getAllResponseHeaders () function. Title contains file information such as length, server type, content type, date modification, etc.
The header
AJAX sends a request to the server
Ajax-sends a request to the serverSend-Off requests to the server, we use the open () method and the Send () method.
The open () method has three arguments. The first parameter defines a method that uses a Send
Ajax Submission MethodIn WebForm development, we often use Ajax to the background to submit data, in my company, usually submitted to the background of this page to deal with, or WebService, both methods are simple, but always seem slightly
Welcome to Www.111cn.net. The development of this site can not be separated from your support. Thank you!
Ajax files
simple ajax effect We prepare an empty div. Fill in the returned data! All code for this instance is complete.
JQ uses Ajax to submit all form data asynchronously, and callbacks
$ ("button"). Click (function () {var data = new FormData ($ (' #biaodan ') [0]); Get all of the data for a form$.ajax ({url: ' __controller__/saveorg ',.//ajax everyone
In the wordpress root directory, create ajax. php as follows:Define ('Doing _ AJAX ', true );Require_once ('WP-config. Php ');Do_action ('WP _ ajax_nopriv _ '. $ _ REQUEST ['action']);Die ('0 ');Add the following code to functions. php in the topic
Similar three-level binding, but when you modify the information, bind and submit again, the value of the drop-down box will always disappear, or after the return, the value of the drop-down box will also disappear, I encountered the same problem in
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