I think the only way this can be done is with Javascript, but I dont know how to do it or even if it can be done.
Basically I need to run a script on a web page every 15 minutes even if the page has not been reloaded. The only way I can think is if i have an image included in every page that the javascript tells the image to reload after a certain amount of time.
Can this be done? If im not clear then please say so and I will try to explain more.
quote: Not exactly sure what you are trying to do, but this might help.
Try adding this between your <head></head> tags.
<meta http-equiv="refresh" content="900">
The 900 is 15 seconds x 60 so it should refresh every 15 minutes.
Why do you want to refresh the page?
Podge ----------------------- www.thehungersite.com Click to donate free food.
This will reload the page after 15 minutes, where I think redbrad was going for not reloading the page but still being able to run a script.
To tell you the truth brad, I think this can't be done. I was looking for the same thing awhile back. Some ppl do this by have a invisible frame that reloads but I just hate frames in general.
thanks for your response, but I know how to do that. Basically why I need this is to tell if people are still connected to the site. Im working on a new site (which i am soooo excited about) where you can have some buddies and when they are online then they will popup on your screen letting you know. So right now I have it so if they go 20 minutes without accessing a page then it logs them off. This is 2 long cause people might think they are on, but really they are not. thats why I wish to get it down to about 5 mins or less. I could set the script so it logs them off after 5 minutes of inactivity, but i have it showing how many minutes they have been on the site so i dont want it to log them off as long as they are still their.
Is it possible to apply this javascript to INC_files for the frontpage? - would be really neat i a javascript could refresh PM´s without the whole page reloading.