Prompt, is it possible with the help of js to retrieve data from the potsgres database with a certain periodicity?
- In short: you can - zhenyab
|
1 answer
In general, the answer is
$(document).ready(function(){ show(); setInterval('show()',60000); }); In function show(); We push the appeal to the database in the form of ajax
$(document).ready(function(){ $.ajax({ type: "POST", url: "/ajax.php?val="+val, dataType: "json", success: function(data) { |