Problem when running ajax to php followed by vecez

0

friend I have a problem running an ajax number of times I ran into the server and the site knocked me down, this could be part of the server or javascript.

Ajax is a common ajax,

$({
  type: "POST",
  dataType: "Json",
  data: json,
  url: "busqueda.php",
  success:function(msg){
    alert(msg);
  }
});
    
asked by JhanVNarvaez 06.10.2018 в 01:20
source

1 answer

0

From what I see of your code, you are using an alert, when you open the Alert it stops the execution of the Javascript of the Page and that should make your browser travel. I recommend that if it is for log, use console.log.

Another interesting thing that you should have, is to do a check if you already have some call to that ajax to not do another one until it ends.

    
answered by 06.10.2018 в 03:24