@Michael Van Canneyt
I apologize, but I forgot an important part of the code that I want to put
in the script, which would be one: setInterval(atualizarTabela, 1000);getting like this:
<script> // Fun??o para atualizar a tabela function atualizarTabela() { // Fazer uma solicita??o AJAX ao servidor $.ajax({ url: "/api/dados", success: function(dados) { // Atualizar a tabela com os dados recebidos $("#tabela tbody").html(dados); } }); } // Chamar a fun??o a cada segundo setInterval(atualizarTabela,
1000); </script>
Show quoted text 120 lines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230826/1b0a395f/attachment.htm>
