What to do if jquery Ajax commits no response

Source: Internet
Author: User

The reason for the failure of jquery Ajax submission is that we have problems with Ajax parameters, and the other is that the Ajax settings in IE in Jquery.form are application/x-javascrip due to the type of submission, let me summarize.

Example One

The code is as follows

$.ajax (
{
Type: "POST",
URL: "/a.php",
Success:function (Result) {
Todo:
}
)

We clicked to submit without any return, so using the FF browser test did not find any effect, and later detected that the data is less: "{A: ' A '}" parameters, we just have to modify it

The code is as follows

$.ajax (
{
Type: "POST",
ContentType: "Application/json",
URL: "a.php",
Data: "{A: ' A '}",
Success:function (Result) {
}
)

Ajax submissions in IE8 e jquery.form not responding

This problem I was analyzed for a few hours found is set Application/x-javascript, IE8 do not work, the solution is in the AJAX submission we can set other or not set on it.

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.