Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 JAVASCRIPT - readload image without reloading page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 11 April 2001 :  17:59:39  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
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.

Brad

Podge
Support Moderator

Ireland
3775 Posts

Posted - 12 April 2001 :  18:21:29  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
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.
Go to Top of Page

Aznknight
Senior Member

USA
1373 Posts

Posted - 12 April 2001 :  18:32:30  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
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.

- Alan
www.iamviet.com
www.calvsa.net
Snitz Resource
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 12 April 2001 :  18:55:18  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Podge,

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.

Any other ideas? I hope this clears things up.

Brad
Go to Top of Page

bkoemans
Starting Member

4 Posts

Posted - 13 April 2001 :  05:32:59  Show Profile
Hello,

Try this one:
http://developer.irt.org/script/1657.htm

Good luck!

Greetings,

Bart Koemans
http://www.gedichten-freaks.nl/ (Dutch)

Bart Koemans
WebMaster http://www.webgek.com/
http://www.gedichten-freaks.nl/
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 01 May 2001 :  10:07:02  Show Profile
quote:

Hello,

Try this one:
http://developer.irt.org/script/1657.htm

Good luck!

Greetings,

Bart Koemans
http://www.gedichten-freaks.nl/ (Dutch)

Bart Koemans
WebMaster http://www.webgek.com/
http://www.gedichten-freaks.nl/




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.

mph73

Morpheus73
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07