In jQuery, I use ajax call to determine if a directory exists. If he gives a 403 error, he must do one thing; if he gives 404, he must use a different directory.
Everything works as it should. Now the problem occurs whenever an error occurs jQuery writes the error to the firebug console. This should not happen.
Is there a way to suppress error logging in jQuery?
$.ajax({ url: "../media/", complete: function(xhr, statusText) { if(xhr.status == 403) {
source share