How to reload table ?
How to reload table ?
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 ?