开发者

jquery and xhr.abort

When aborting an ajax request with the xhr that's passed back from the jQuery.ajax function, firebug shows that it's still trying to load that request. It doesn't block any more req开发者_如何学Pythonuests that are made, but it also doesn't show that it ever completes the request.

Is this just a firebug problem?


It seems that this is just a firebug issue.

I set up a test case at jsbin to see how firebug reacted. If you look at the 'Net' tab, you can see the time and amount of data that was transferred for that request, this indicates that the connection is complete, even if the spinner is still bugging you in the console area.

Here is the test case: http://jsbin.com/isolo

I suggest going to http://jsbin.com/isolo/edit and commenting out each of the last lines as a single test case, and you can see how the Net tab speaks more truth.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜