473,562 Members | 2,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

META redirect

Hello, I have this code which redirects to
http://www.domain.com/link.html . . . but I want to specify the NUMBER
OF SECONDS before the site is redirected. Can somebody here help me . .
..

<meta http-equiv="Refresh"
content="4;url= http://www.domain.com/link.html">
PLEASE HELP. Thanks.

May 17 '06 #1
19 13079
On Wed, 17 May 2006 11:55:33 +0200, IveCal <iv*****@gmail. com> wrote:
I have this code which redirects to
http://www.domain.com/link.html . . . but I want to specify the NUMBER
OF SECONDS before the site is redirected. Can somebody here help me . .
.

<meta http-equiv="Refresh"
content="4;url= http://www.domain.com/link.html">


Had you Googled
<URL:http://www.google.com/search?q=meta+r edirect+OR+refr esh> within the
first few results you would have found:
<URL:http://www.htmlhelp.or g/reference/html40/head/meta.html> and
<URL:http://www.seologic.co m/faq/meta-refresh-tag.php>

Both have good information.
--
______PretLette rs:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
May 17 '06 #2
On 17 May 2006, IveCal wrote:
<meta http-equiv="Refresh"
content="4;url= http://www.domain.com/link.html">


Don't do that!
http://www.w3.org/QA/Tips/reback

--
The working man is dead - the acute accent is alive.
http://www.workingmansdeath.com/imag...kinoplakat.gif

May 17 '06 #3
Andreas Prilop wrote:
On 17 May 2006, IveCal wrote:
<meta http-equiv="Refresh"
content="4;url= http://www.domain.com/link.html">


Don't do that!
http://www.w3.org/QA/Tips/reback


While you are generally correct, I have an intance where the Refresh is
indeed the only way I know to accomplish what I want.

I want to create and display a formatted index of all my Web pages as an
HTML Web page, on the fly. I have an SSI script that creates the Web
page. However, to execute that script, a Web page that refers to it
must first be served by the server.

The user requests my <http://www.rossde.com/get_index.html> . This
displays a page telling the visitor to wait but that, if a new page does
not load soon, select the Go button.

<http://www.rossde.com/get_index.html> causes SSI script get_index.ksh
to execute, creating file index_list.html .
<http://www.rossde.com/get_index.html> also contains
<META HTTP-EQUIV="Refresh" CONTENT="1;
URL=http://www.rossde.com/index_list.html ">
This then causes the generated <http://www.rossde.com/index_list.html >
to replace <http://www.rossde.com/get_index.html> in the browser window.

The 1 sec delay is to ensure that the script has indeed closed the
generated file before that file is served. However, I suspect that the
handling of SSI scripts by Apache would ensure that the file is closed
before even <http://www.rossde.com/get_index.html> loads.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
May 17 '06 #4
To further the education of mankind, "David E. Ross" <no****@nowhere .not>
vouchsafed:
Andreas Prilop wrote:
On 17 May 2006, IveCal wrote:
<meta http-equiv="Refresh"
content="4;url= http://www.domain.com/link.html">


Don't do that!
http://www.w3.org/QA/Tips/reback


While you are generally correct, I have an intance where the Refresh is
indeed the only way I know to accomplish what I want.


A regular link will work. If you want the first page 'replaced', a simple
way is to use javascript.

--
Neredbojias
Infinity has its limits.
May 17 '06 #5
David E. Ross wrote:
While you are generally correct, I have an intance where the Refresh is
indeed the only way I know to accomplish what I want.
As Jukka would say, "then stop wanting that".
I want to create and display a formatted index of all my Web pages as an
HTML Web page, on the fly. I have an SSI script that creates the Web
page. However, to execute that script, a Web page that refers to it
must first be served by the server.


This sounds liek a very roundabout way of displaying an index. Better to
link directly to index_list.html and include all of get_index.ksh's login
into it.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

May 18 '06 #6
Toby Inkster wrote:
David E. Ross wrote:
While you are generally correct, I have an intance where the Refresh is
indeed the only way I know to accomplish what I want.


As Jukka would say, "then stop wanting that".
I want to create and display a formatted index of all my Web pages as an
HTML Web page, on the fly. I have an SSI script that creates the Web
page. However, to execute that script, a Web page that refers to it
must first be served by the server.


This sounds liek a very roundabout way of displaying an index. Better to
link directly to index_list.html and include all of get_index.ksh's login
into it.


Before I saw your reply, I starting thinking along similar lines.
Instead of generating a complete HTML file and then using Refresh to
load that file, why not merely generate the body of the HTML file that
contains the SSI include statement. It works!! (Of course, I still
have to test it from other computers.)

No, I could not use JavaScript. While I can easily create UNIX Korn
scripts (I can almost think in UNIX Korn), I don't know JavaScript.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
May 19 '06 #7
Toby Inkster wrote:
... sounds liek a...
like. :-(
get_index.ksh's login into it.


logic. :-(

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

May 19 '06 #8

IveCal wrote:
Hello, I have this code which redirects to
http://www.domain.com/link.html . . . but I want to specify the NUMBER
OF SECONDS before the site is redirected. Can somebody here help me . .
.

<meta http-equiv="Refresh"
content="4;url= http://www.domain.com/link.html">
PLEASE HELP. Thanks.


As some in this topic have said, you could use a script instead, like:

<script type="javascrip t">
function timer()
{
setTimeout("red irect()", 4000);
//This will set the time until the redirect happens to 4 seconds, as
JavaScript uses milliseconds
}
function redirect()
{
location.href = "http://www.whateveryou rwebpageis.com" ;
}

For this to work off of the loading of the page, you can just modify
the <body> element to look like this:
<body allofyourattrib utes onLoad="timer() ;">

Just replace 'allofyourattri butes with the normal attributes of body.
This should have your page wait for 4 seconds after it is loaded to
redirect to your web page.

THIS IS JUST AN OPTIONAL ALTERNATIVE!

I have the honor to remain your most humble and Ob't Sv't in our war
against the King.

--
Patrick Reilly
1st Coy.
Colonel Seth Warner's Regiment

May 19 '06 #9
pe************* *******@gmail.c om <pe************ ********@gmail. com>
scripsit:
THIS IS JUST AN OPTIONAL ALTERNATIVE!


You misspelled "yet another wrong answer". But thanks for SHOUTING: it is
such a clear indication of not making a useful contribution.

May 19 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2558
by: Steven Feil | last post by:
I was wondering if the there was a meta tag that would cause a standard browser to reload a URL "immediately"? The reason why I want to do the is as follows. I have a PHP script that does some processing of user forms, the submit button takes the user back to the same URL (with different CGI data). This is ok because I don't want the user...
2
1599
by: wk6pack | last post by:
Hi, I'm trying to redirect the page while trying to pass some values to the next asp page. I'm not getting any values when I do this. Is this possible? I'm using the code below to redirect <META HTTP-EQUIV="Refresh" CONTENT="5; URL=supportservicelist.asp"> but when I look at the value of my variable PEN, there is nothing there.
10
7835
by: Udi Zisser | last post by:
Hello, any idea why this does not work? or how do i get this thing to work? <BASE HREF="http://localhost/thedude/"> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html"> I'm adding the <base> tag to the content of an existing html that contains a redirect meta tag.
4
6215
by: Jim Hammond | last post by:
After much effort, it doesn't seem possible to redirect the user to a new page after 10 seconds by using a server-side timer. I am now using the following meta statement to accomplish the same thing: <META HTTP-EQUIV="refresh" content="10;URL=Form_Welcome.aspx"> This seems to work fine, but I now have three concerns because I thought it...
2
1655
by: Rob Meade | last post by:
Hi all, I have the need to write a meta tag to the page BEFORE it loads... My page does 3 things based on whats passed through in the query string: 1. Receive a file id and check its valid, display "Retrieving file...please wait.", redirect to same page with altered querystring 2. Based on new querystring value retrieve document details...
8
2837
by: Taras_96 | last post by:
Hi everyone, We' ve come to the conclusion that we wish the user to be directed to an error page if javascript is disabled <enter comment about how a webpage shouldn't rely on javascript here :) >. I've read quite a few posts on how to do this, but none meet my need (the two main suggestions was set a jsEnabled variable in a <scriptsection...
1
1957
by: helraizer1 | last post by:
Hey. I am making a site as part of a project/presentation. Others used Powerpoint but I decided to make a website with various pages within it. On one of the pages 'Humanities', there are several parts to the page; History, Geography, RE, Citizenship, etc... which are all named, so there are links to #history, #geography on the page. As...
5
1401
by: Nick | last post by:
Hi there, I am adding a meta redirect tag to the page dynamically on 2 separate pages in asp.net. One of the pages it works fine, and 5 seconds after the page appears, the redirect occurs. On another page, the redirect is completely ignored, so I have a couple of questions. 1. Any idea what could prevent redirection? 2. Any idea...
0
7577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7627
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7935
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5193
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3623
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
903
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.