Jeff Posted March 22, 2011 Report Posted March 22, 2011 I'm wanting to make my (mysite.com/index.php) page refresh after so amount of time (1 minute). I placed the code in, but now my whole site refreshes after one minute has gone by. Is there a way to just have the main page refresh? Quote
Tom Posted March 22, 2011 Report Posted March 22, 2011 Try the following: <?php if(MainController::$activeModule == 'FRONTPAGE') { ?> // Your refresh code <?php } ?> Quote
TAV1702 Posted March 22, 2011 Report Posted March 22, 2011 Yeah that should stop the header and footer from refreshing. Nice idea. Quote
Jeff Posted March 23, 2011 Author Report Posted March 23, 2011 Thank you Tom, it is now working. If anyone would like the refresh code, here it is <meta http-equiv="refresh" content="60" > Just change the 60 to the time you want it to refresh. (Ex. 60= 1 minute) Quote
Moderators mark1million Posted March 23, 2011 Moderators Report Posted March 23, 2011 Do you mean like my index page? I use jquery and place the code in between a named div, so i can refresh any part of my site that is in the specified div. Quote
Jeff Posted March 23, 2011 Author Report Posted March 23, 2011 I only have it on the main page because I want the flight board (the Eye Candy one) to refresh every minute, but didn't find an answer from your last post in that thread, so I just did that code. If you have the code to have just that flight board to refresh after so long, instead of the whole page, I'm willing to replace what I have. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.