Need Javascript Help

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

I need a javascript that can do the following...

After 10 minutes of being on the same page a dialog box popups up and says you got 30 seconds to click ok, or you will be logged off. If the user clicks ok the dialog box goes away. If they don't do anything the dialog box directs them to another page. If they click ok, the script needs to go on after another 10 minutes.

Do you know of a script that can do it? The closest I came was http://javascript.internet.com/navigation/autoclose-inactive-popup.html.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Well, that scripts looks ok, is there anything wrong with it?

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

The problem is you have to click a botton for it to activate. And it doesn't restart after another 30 seconds. It also doesn't give you the option to stop it if you are still on the page.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

hmmm I was looking for one, no luck yet, but Ive seen it work with javascript and a redirect, although the source ive seen for these are php based... maybe i should scoure deeper... anyways, whats the purpose for these?

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Well, I had to pay a programmer to do it because I couldn't find anything. But thanks for the help. Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.