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.
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.
Not really sure how what you are requesting is different from AJAX Threads?
This is just an example.HTML Code:<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>
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 by Fanta; 30th January 2012 at 23:51.
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.
You can change 300 to what ever you wish, the value is in seconds.Code:<meta http-equiv=refresh content="300">
Please do not Private Message me with support requests or product questions. PMs are only for exchanging sensitive information (like FTP / AdminCP logins).
Post Thanks / LikeSan thanked for this post
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
Well.. it's just an idea
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks