Auto refresh many Divs with one load

Go down

Auto refresh many Divs with one load Empty 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?
avatar
Ahmed.K
Forumember

Posts : 349
Reputation : 4
Language : English

Back to top Go down

Auto refresh many Divs with one load Empty 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
Cassius Dio
Forumember

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

http://beatles.forummo.com/

Back to top Go down

Back to top


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