萤火虫像Twitter的控制台选项卡AJAX的prevent记录来电 [英] Prevent logging of AJAX calls in console tab of Firebug like Twitter
问题描述
需要知道我可以prevent登录Firebug的控制台选项卡,微博的方式做我的AJAX调用。 当你在Twitter搜索你会得到一个实时更新进说:5鸣叫,因为你搜索。 Twitter的定期发送AJAX调用的实时更新,但这些AJAX调用不会获得登录Firebug的控制台选项卡,你将能够看到他们,如果你切换到萤火虫的网络选项卡。谁能告诉我如何叽叽喳喳实现这一目标,因为在我的Web应用程序中所有的AJAX调用就会登录到Firebug的控制台选项卡。
Need to know how i can prevent logging my AJAX calls in Firebug's Console tab, the way Twitter does. When you search in Twitter you get a live update feed saying "5 tweets since you searched". Twitter sends periodic AJAX calls for the live updates, however these AJAX calls do not get logged in Firebug's console tab, you will be able to see them if you switch to the Net tab of Firebug. Can someone tell me how does twitter achieve this because in my web application all the AJAX calls get logged into the Firebug's console tab.
编辑:<一href="http://integratedsearch.twitter.com/search.html?_=1262555274577&q=%23avatar&since_id=7344168531&refresh=true&callback=processSummizeRefresh" rel="nofollow">http://integratedsearch.twitter.com/search.html?_=1262555274577&q=%23avatar&since_id=7344168531&refresh=true&callback=processSummizeRefresh.
多数民众赞成被炒鱿鱼的URL。粘贴在浏览器中的链接,你甚至会得到resoponse。
Thats the url that gets fired. Pasting the link in your browser you will even get the resoponse.
推荐答案
请注意回调 processSummizeRefresh
。
由于呼叫正在作出一个子域(integratedsearch.twitter.com),JSONP正在使用它注入一个脚本标记,使该请求。
Since the call is being made to a subdomain (integratedsearch.twitter.com), JSONP is being used which injects a script tag to make the request.
没有特别的萤火隐藏法宝:)
No special FireBug hiding magic :)
请参阅:<一href="http://stackoverflow.com/questions/1146728/firebug-and-monitoring-jsonp-cross-domain-requests">http://stackoverflow.com/questions/1146728/firebug-and-monitoring-jsonp-cross-domain-requests
这篇关于萤火虫像Twitter的控制台选项卡AJAX的prevent记录来电的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!