开发者

Prevent logging of AJAX calls in console tab of Firebug like Twitter

开发者 https://www.devze.com 2022-12-15 20:36 出处:网络
Need to know how i can prevent logging my AJAX calls in Firebug\'s Console tab, the way Twitter does.

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.

EDIT : http://integratedsearch.twitter.com/search.html?_=1262555274577&q=%23avatar&since_id=7344168531&refresh=true&callback=processSummizeRefresh.

Thats the url that gets fired. Pasting the link 开发者_如何学运维in your browser you will even get the resoponse.


Note the callback processSummizeRefresh.

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 :)

See: FireBug and monitoring JSONP cross-domain requests

0

精彩评论

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