The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Auto refresh many Divs with one load

View previous topic View next topic Go down

Auto refresh many Divs with one load

Post by Ahmed.K on August 23rd 2013, 7:56 pm

I make auto refresh for these Divs (#div1 - #div2 - #div3)

I use this code in the Homepage and it works fine:

$(document).ready(function() {
var refreshId = setInterval(function()
$('#div1').load('/ #div1');
$('#div2').load('/ #div2');
$('#div3').load('/ #div3');
}, 10000);
$.ajaxSetup({ cache: false });

But is there a way to use them with one load?


Posts : 349
Reputation : 4
Language : English

Back to top Go down

Re: Auto refresh many Divs with one load

Post by Cassius Dio on August 24th 2013, 8:39 am

Hi, bye

No, this is not possible, because all divs are different and there needs different .load() functions. Sorry. Sad
Cassius Dio

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum