473,910 Members | 4,173 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 13116
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
2571
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 bookmarking anywhere between when the first form is started and the last form finished. Once the...
2
1612
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
7876
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
6244
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 was supposed to be possible to do everything in C#. 1. Note that Visual Studio lets the developer...
2
1671
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 and check its ok to allow the user to download the file,, display a message to the user
8
2862
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 of the HTML and read it in PHP, and the other suggestion was by default loading the non js page,...
1
1977
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 to keep the presentation like a ppt presentation, I have made the pages redirect after 25 seconds...
5
1418
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 how I can view my dynamically added tags, and at what point are they visible? (load / init) ?
0
10037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9879
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11349
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10921
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11055
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9727
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7250
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6142
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.