Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82528

Updating two tables via AJAX

$
0
0

Apologies, I'm not that great with JS.

I have a page with two tables that are updated via AJAX. The initial population works fine. I have the following code:

    setInterval(function() {
      ttrt.ajax.reload();
    }, 60000 );
    setInterval(function() {
      wwow.ajax.reload();
    }, 10000 );

The intention is that table ttrt should update once a minute, and table wwow every ten seconds. The wwow table updates as expected; the ttrt one does not.

I suspect the second setInterval is overriding the first. Can I have two tables updating at different intervals?


Viewing all articles
Browse latest Browse all 82528


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>