Solution to ineffective paip. Ajax callback function

Source: Internet
Author: User

Solution to ineffective paip. Ajax callback function
Today, I debugged an Ajax, jquery1.2.3, and found that the callback does not work ..
Open HTTP watch and you can see that the URL request is sent .. 200... is returned...

The complete and error events are all added, and no response is returned .. Debug with the F12 tool. The result shows that AJAX can be executed and no callback result is returned ..

So I thought where the syntax error was. I loaded this method directly when loading the page, and the result can be called back, which is normal .. The callback fails when The onclick button is called ..

When I add page load, an alert pops up, and then call clien, I find that the page is loaded again, and the callback cannot be performed ..

The window already exists in the original button event. Open, refresh the page again, leading to invalid Ajax callback.

Test of such events: You can perform alert when loading the page...

Test whether the page will be loaded again after Ajax is initiated...

Solution: comment out the window. Open .. After Ajax is initiated, the page is not refreshed .. Solve the problem.

Attilax log 2012.7.16

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: 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.