开发者

Getting ajax history

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜