Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

176
Visualizações
Why is adblocker blocking an ajax request?

I am using AJAX to check if a username is taken while the user is typing. Opera's adblocker is blocking the script from running. The file path is http://localhost/flashcardapp/inc/isUidTaken.inc.php?uid=asf. I can call the file directly, but can't seem to access it with AJAX. When I turn off adblocker, the issue is resolved.

I have tried without effect changing the names of files and folders.

Can I resolve this issue, or should I just leave it as it is, as the server checks if the username is taken as well, the only thing is it would be less convenient if they have to submit the form and then see if their username is taken.

$("input[name='uid']").on('change', function() {
  var value = $(this).val();
  $.ajax({
    url: "inc/isUidTaken.inc.php",
    data: {
      uid: value
    },
    type: "GET",
    success: function(data) {
      console.log(data);
    }
  });
});
about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda