How to reload table ?

How to reload table ?

abiieezabiieez Posts: 8Questions: 2Answers: 0
edited December 2016 in Free community support

I have the following code

` $(document).ready(function(){
var url = "someurl";
$.get(url, function( data ) {
var ratesJSON = data['query']['results']['rate'];
console.log( "Data Loaded: " + data['query']['results']['rate'].length );
$('#example').DataTable( {
data: ratesJSON,
columns: [
{ data: "Name" },
{ data: "Rate" },
{ data: "Ask" },
{ data: "Bid." },
{ data: "Date" },
{ data: "Time" }
]
});
});
});

Now I need to auto refresh the table lets say every 30 seconds. How can I do that ?

This discussion has been closed.