The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Auto refresh many Divs with one load

2 posters

Go down

Auto refresh many Divs with one load Empty Auto refresh many Divs with one load

Post by Ahmed.K Fri Aug 23 2013, 20:56

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 Sat Aug 24 2013, 09:39

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