How to hide ajax requests from firebug console or anything that shows ajax calls ?
There are few ways to "hide" them or actually make them less obvious to find; Make a JSONP request, they are not real AJAX calls, as they do not use the XMLHttpRequest object. They simply inject a script tag in the dom, the requests are still visible in the network tab.
Just call xhr. abort() whether it's jquery ajax object or native XMLHTTPRequest object.
Ajax. Ajax is the traditional way to make an asynchronous HTTP request. Data can be sent using the HTTP POST method and received using the HTTP GET method.
Please, call this function after ajax success or fail:
$('.result').load('testtemplateboth/testpagetpl');
clearconsole();
function clearconsole() {
console.log(window.console);
if(window.console || window.console.firebug) {
console.clear();
}
}
OR
$('.log').ajaxComplete(function() {
clearconsole();
$(this).text('Triggered ajaxComplete handler.');
});
function clearconsole() {
console.log(window.console);
if(window.console || window.console.firebug) {
console.clear();
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With