how to re-refresh page only once?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

how to re-refresh page only once?

Post by yosuke_ »

Hi!!
Well, I need to refresh page after 1 second but only once!! With this:

Code: Select all

<meta http-equiv="Refresh" content="1;url=/default.php">
It will refresh it after 1 second all the time!! Is there a code to refresh it only once??? Thank you!
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Please, please, please tell me you posted this in the worng forum as a joke!!!!!!!

How many posts have you now had moved from General Discussion!

PLEASE POST IN THE CORRECT PLACE!

Mark
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

are you using PHP (do you have PHP enabled on your server)?

If so, you could use a refresh to point to default.php?r=n

and then, in default.php, include this:

Code: Select all

<?php
if (!empty ($_GET['r']))
    echo '<meta http-equiv="Refresh" content="1;url=/default.php?r=n">';
?>
Last edited by vigge89 on Sun Apr 18, 2004 3:45 pm, edited 2 times in total.
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post by yosuke_ »

Doesnt my post fit in this forum? if NO the sorry! Please tell me where should I post my stupid questions? Thank You!
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post by yosuke_ »

I know its html meta tag, but is there any way to refresh page only once??? And I use PHP!!!
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Read the forum discriptions. Just use your common sense....thanks

Mark
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post by yosuke_ »

Ok, I will, but can you help me with this one?
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

yosuke_ wrote:Ok, I will, but can you help me with this one?
I alreade did...
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post by yosuke_ »

Wooow!! thank soo you!!!
Post Reply