Fanta

Customer
I've been searching for this and found a lot different code/scripts yet i have not been able to get any of them working.

Wouldn't be a good idea to make a mod that auto refresh the page with ajax jquery?

Btw, i'm already using the ajax threads mod.
 
HTML:
<html>
<head>
<!-- For ease i'm just using a JQuery version hosted by JQuery- you can download any version and link to it locally -->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
 $(document).ready(function() {
 	 $("#responsecontainer").load("response.php");
   var refreshId = setInterval(function() {
   }, 9000);
   $.ajaxSetup({ cache: false });
});
</script>
</head>
<body>
 
<div id="responsecontainer">
(auto refresh homepage or forumpage)
</div>
</body>

This is just an example.
I tried different scripts and couldn't get any one of them working.
I just don't have any idea how or where to write the script so it auto refresh homepage.

(javascript refresh element setinterval)
 
Last edited:
If you want it to refresh the CMS home page you need to edit the template vBulletin CMS Templates / vbcms_page

If you want it to refresh the Forum home page you need to edit the template Forum Home Templates / FORUMHOME

Add the following code to the very top of the template.

Code:
<meta http-equiv=refresh content="300">

You can change 300 to what ever you wish, the value is in seconds.
 
If you want it to refresh the CMS home page you need to edit the template vBulletin CMS Templates / vbcms_page

If you want it to refresh the Forum home page you need to edit the template Forum Home Templates / FORUMHOME

Add the following code to the very top of the template.

Code:
<meta http-equiv=refresh content="300">

You can change 300 to what ever you wish, the value is in seconds.

Hello,

I already know how to do that but i want to have the page refreshed with jquery.


javascript - auto-refreshing div with jquery - Stack Overflow


Refresh DIV Content Without Reloading Page


Im sure you guys can make a jquery page refresh vbulletin mod :p

Well.. it's just an idea :)
 
Back
Top