Auto refresh many Divs with one load
2 posters
Page 1 of 1
Auto refresh many Divs with one load
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?
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?
Ahmed.K- Forumember
- Posts : 349
Reputation : 4
Language : English
Re: Auto refresh many Divs with one load
Hi,
No, this is not possible, because all divs are different and there needs different .load() functions. Sorry.
No, this is not possible, because all divs are different and there needs different .load() functions. Sorry.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum