Click to See Complete Forum and Search --> : window.setTimeout has me baffled


GingerNutter
03-13-2003, 01:23 PM
I'm trying to create a logout script that only logs out the user if they stop using the site for a certain amount of time.
what I have at the moment works but only once I can't seem to refresh the timeout on the lower frame.

How would I go about resetting the timer every time a page is loaded in the main frame (name="rbottom")?

Whenever a page is loaded into the main from at the top of the page is this parent.frames['sessiontimer'].window.setTimeout('CountDown()',1000);

It only seems to work once and not every time that page is loaded (to refresh the timer).

Any Ideas??

Thanks in advance.

Loads-a-Luv
Jonathan


P.S I have attached the code i have been working on, its nothing special - just a testing.

AdamBrill
03-13-2003, 01:51 PM
Try this instead. Let me know if you have any more problems... ;)

GingerNutter
03-14-2003, 04:13 AM
Absolutely fantastic... Just what I was looking for. Thank you very very much my good man... if you were here I would kiss ya.. errm no... well maybe shake your hand. :D

Thanks very much for your help.