Auto Refresh jrLoad boxes, Instead of Onclick?

alt=
Ekwe
@ekwe
10 years ago
212 posts
Trying to change one of my div sections under the jrLoad .js to autoload every 10 mins. How do I do that please?

Thanks

If possible, or is there another way ? Thanks deeply appreciate the help in advance
updated by @ekwe: 03/02/14 07:44:33AM
douglas
@douglas
10 years ago
2,790 posts
Your code isn't showing, try adding a space after each character of your code. You may also need to add a space after each { and } character as well.

Which skin is this for?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
Ekwe
@ekwe
10 years ago
212 posts
This is for projam, sorry the code is not there. But was saying do I need to add like autorefresh=1000 kind of code?
douglas
@douglas
10 years ago
2,790 posts
In your skins/jrProJam/js/jrProJam.js file, at the very bottom of the file, add this:

Quote:
var auto_refresh_sm = setInterval(
function ()
{
$('#DIV').load(core_system_url +'/template').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds


and change the DIV to the id of the div your wanting to refresh and change template to the template you want loaded. You can also change the 10000 to whatever seconds you want to wait before the refresh.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 01/30/14 05:36:07AM

Tags