Colleagues.
I have a chat on a project, but I want to go further. I want user I when calling user II to receive a notification of modal bootstrap. The initial idea is to create status in the database and user II upon receiving the invitation, would change the status, eg. C of invitation and the modal would appear. So I want to put inside a div an ex call:
if($statusChamada == 'C'){
?>
<div id='chamada'>Abrir o modal</div>
<?php } ?>
and Jquey:
setInterval(function() {
$("#chamada").load(location.href+" #chamada");
}, 1000);
So far so good, all right ... but how would you make the bootstrap modal open automatically?