I'm trying to change data in a div of HTML page every 30 seconds. Hence div must update the page data, I'm getting "too much recursion" error on js, don't know what to do, please help.
There is my code:
<script>
// Função para inserir os dados do formulário na base de dados
function a() {
setTimeout( $("#mainpages").load("pages/tables/Table2.php"), 30000);
b();
}
function b() {
setTimeout($("#mainpages").load("pages/tables/Table3.php"), 30000);
c();
}
function c() {
setTimeout($("#mainpages").load("pages/tables/Table1.php"), 30000);
a();
}
</script>
<style>
th { font-size: 54px; }
td { font-size: 54px; }
}
</style>
<body class="hold-transition skin-blue sidebar-mini" onload="a();" >
Could you help me out?