开发者

Getting ajax history

开发者 https://www.devze.com 2022-12-20 08:44 出处:网络
Is it 开发者_Python百科possible to get a history of all past ajax calls from the browser? If not, are there any ffx plugins or similar that will store all your ajax request in a similar way to the no

Is it 开发者_Python百科possible to get a history of all past ajax calls from the browser?

If not, are there any ffx plugins or similar that will store all your ajax request in a similar way to the normal browser history?


Hopefully not. This sounds remotely evil and tends to violate same origin policy. I mean, if this existed someone could, for instance, monitor all of a 3rd parties' activity on any web 2.0 site like gmail.

If this is for use within a single site, you want to have someone write a library that wraps the ajax calls and records a history and then get all the developers to use that instead of making ajax calls directly.

Maybe you want this Yahoo library as pointed out in this question.

I've used Firebug to debug a site that utilized ajax calls. So there is a ffx monitoring capability.


If you want to monitor your AJAX calls, install a HTTP Proxy (e.g. Fiddler if on Windows) and see the AJAX calls logged there (to the network, they're normal HTTP requests/responses, only their handling in browser differs).


Fiddler 2 and firebug work great. I recommend firebug because you can debug the javascript making the calls as well.

0

精彩评论

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