Automatic redirect a page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to set up a page that automatically redirects visitors to another
page on my web site in say 5 secs.

I cannot see a promt in FP 2002 to facilitate this - is there one?

Or does anyone no a script I can edit into the html to achieve same?

Thank you.
 
here's a fancy one
<html>
<head>
<script language="JavaScript">
var start=new Date();
start=Date.parse(start)/1000;
var counts=10;
function CountDown()
{
var now = new Date();
now = Date.parse(now)/1000;
var x = parseInt(counts-(now-start),10);
if(document.form1)
document.form1.clock.value = x;
if(x>0)
timerID=setTimeout("CountDown()", 100)
else
location.href="http://javascript.internet.com"
}
window.setTimeout('CountDown()',100);
</script>
</head>

<body>
<center>
<form name="form1">
You are being redirected in
<input type="text" name="clock" size="2" value="10">
seconds.
</form>

<p>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a>
</font>
<p>
</center>

</body>
</html>

It redirects in 10 seconds - change the setting in setTimeout and
location.href
--
Cheers,
Trevor L., WIP (Web Interested Person)
Website: http://tandcl.homemail.com.au
Hi,

I want to set up a page that automatically redirects visitors to
another page on my web site in say 5 secs.

I cannot see a promt in FP 2002 to facilitate this - is there one?

Or does anyone no a script I can edit into the html to achieve same?

Thank you.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
Sorry JDR, I forgot to mention that the redirect page was in a password
restricted area!!!

The visitor would have already entered a pasword to get to the transfer page
but when it redirects it asks them again for the password.

I guess because we are using the term 'refresh'

Any way around it?

Thanks again Steve
 
Trevor,

Thanks for your help - I like your script nut it still fgives me the same
problem as I have just advised JDR:

Copy of post to him


"Sorry JDR, I forgot to mention that the redirect page was in a password
restricted area!!!

The visitor would have already entered a pasword to get to the transfer page
but when it redirects it asks them again for the password.

I guess because we are using the term 'refresh'

Any way around it?

Thanks again Steve"


In your script I notice it does not use refresh - but it still asks for the
password again.

I got this error message from the server if it helps:

"""HTTP Error 401
401.2 Unauthorized: Logon Failed due to server configuration

This error indicates that the credentials passed to the server do not match
the credentials required to log on to the server. This is usually caused by
not sending the proper WWW-Authenticate header field.

Please contact the Web server's administrator to verify that you have
permission to access to requested resource."""

Any solutions would be appreciated.

Thanks Steve
 
Depends on how you are authenticating the user password
You need to process the users log in before you attempt to redirect

--




| Trevor,
|
| Thanks for your help - I like your script nut it still fgives me the same
| problem as I have just advised JDR:
|
| Copy of post to him
|
|
| "Sorry JDR, I forgot to mention that the redirect page was in a password
| restricted area!!!
|
| The visitor would have already entered a pasword to get to the transfer page
| but when it redirects it asks them again for the password.
|
| I guess because we are using the term 'refresh'
|
| Any way around it?
|
| Thanks again Steve"
|
|
| In your script I notice it does not use refresh - but it still asks for the
| password again.
|
| I got this error message from the server if it helps:
|
| """HTTP Error 401
| 401.2 Unauthorized: Logon Failed due to server configuration
|
| This error indicates that the credentials passed to the server do not match
| the credentials required to log on to the server. This is usually caused by
| not sending the proper WWW-Authenticate header field.
|
| Please contact the Web server's administrator to verify that you have
| permission to access to requested resource."""
|
| Any solutions would be appreciated.
|
| Thanks Steve
|
|
| "Trevor L." wrote:
|
| > here's a fancy one
| > <html>
| > <head>
| > <script language="JavaScript">
| > var start=new Date();
| > start=Date.parse(start)/1000;
| > var counts=10;
| > function CountDown()
| > {
| > var now = new Date();
| > now = Date.parse(now)/1000;
| > var x = parseInt(counts-(now-start),10);
| > if(document.form1)
| > document.form1.clock.value = x;
| > if(x>0)
| > timerID=setTimeout("CountDown()", 100)
| > else
| > location.href="http://javascript.internet.com"
| > }
| > window.setTimeout('CountDown()',100);
| > </script>
| > </head>
| >
| > <body>
| > <center>
| > <form name="form1">
| > You are being redirected in
| > <input type="text" name="clock" size="2" value="10">
| > seconds.
| > </form>
| >
| > <p>
| > <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
| > by <a href="http://javascriptsource.com">The JavaScript Source</a>
| > </font>
| > <p>
| > </center>
| >
| > </body>
| > </html>
| >
| > It redirects in 10 seconds - change the setting in setTimeout and
| > location.href
| > --
| > Cheers,
| > Trevor L., WIP (Web Interested Person)
| > Website: http://tandcl.homemail.com.au
| >
| > Steve wrote:
| > > Hi,
| > >
| > > I want to set up a page that automatically redirects visitors to
| > > another page on my web site in say 5 secs.
| > >
| > > I cannot see a promt in FP 2002 to facilitate this - is there one?
| > >
| > > Or does anyone no a script I can edit into the html to achieve same?
| > >
| > > Thank you.
| >
| >
| > I choose Polesoft Lockspam to fight spam, and you?
| > http://www.polesoft.com/refer.html
| >
| >
| >
 
then....when they enter the password, the password script should validate
the password and let the user in ONLY if the password is correct, else
divert to an error page.
 
Back
Top