3
The problem is that sometimes the consultation runs out of time or even gives error, so I want to automate in these cases.
$.ajax({
            type: "GET",
            url: 'inserindodados.prisma',
            data: $('#FormularioDescoberta').serializeArray(),
            dataType: "json",
            success: function(sucesso){
            // Beleza deu certo!
            }
            error: function(erro){
            // Tente novamente
            }
});
What would be
bind(null?– Rafael Lemos
@Rafaellemos bind creates a new function already "configured". The first argument indicates what will be the
thiswithin this new function. The others are the parameters of the function when invoked. As I do not need to use thethisplacednull, but you can use something else if you want.– Sergio