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