Im in the need to update several #divs on a page by using AJAX to call a function in my web app that returns a value. The value is a counter the idea is to update it in realtime this way.
function getTime(ID) returns = "12.00"
What would be a good way to implement this in query?
Im using below snippet to reload a section of a page but how to do this with multiple sections? any query guru's can help me on the right way? thx!
:javascript
var refreshId = setInterval(function() {
$("#basket").load('/gettime/<id value from id attribute to pass it???>');
}, 10000);
$.ajaxSetup({ cache: true });