[Pas2js] How to add script like the below in pas2js
Anderson Junior
andersonscinfo at gmail.com
Fri Aug 25 19:05:43 CEST 2023
>
> <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); } }); }
I want to add this script to the end of my page to keep updating.
Is it possible to do this, or is it better to put it in the html file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230825/aab11522/attachment.htm>
More information about the Pas2js
mailing list