I have a notification button in my software where I wanted it to automatically update itself. Then I made the following code:
setTimeout(mostrarNotificacao, 90000);
function mostrarNotificacao(){
//function mostrarModal(idPedidos){
$(document).ready(function() {
var url = "../../componentes/php/ff_notificacao_php.php";
$('.modal-content').load(url,
function(resultado){
$('#conteudoNotificacao').html(resultado);
});
});
}
But as long as it's not 1.5 minutes the button does not appear, after this appears, is there any better way to do that?