...

View Full Version : ie7 meta refresh



goughy000
02-01-2007, 06:23 PM
ok so i have this:


<meta http-equiv="refresh" content="7;url='http://example.com/web/launch/message.php?remote=12&simple=1#bottom'" />

firefox refreshes fine and goes to the #bottom bookmark

ie7 dosnt refresh at all

if i get rid of the #bottom then they both refresh but not to the bookmark which is what i want

thanx :D

Pennimus
02-01-2007, 06:56 PM
Use a javascript timed redirect (http://www.google.co.uk/search?q=javascript+timed+redirect) instead, or something at the server level using PHP, ASP, htaccess, IIS etc...

_Aerospace_Eng_
02-01-2007, 07:08 PM
I agree with using the server side redirect. Don't do it in javascript however the syntax for your meta refresh is incorrect

<meta http-equiv="refresh" content="7;url=http://example.com/web/launch/message.php?remote=12&simple=1#bottom" />
There should be no single quotes around the url value.

goughy000
02-01-2007, 07:11 PM
i get the same results without the quotes (i tried it that way first)

and i want them to see the page for the 7 seconds though and a server side would give me an instant redirect

its an instant messenger, i have an ajax version that works fine but i want this mode too which uses simple html and iframes for browsers with restricted javascript access

_Aerospace_Eng_
02-01-2007, 07:28 PM
Not sure where you got the idea of a redirect on the server side redirects the user instantly. PHP does have the ability to refresh the page in a set amount of time

header('refresh: 7; url=web/launch/message.php?remote=12&simple=1#bottom');

goughy000
02-01-2007, 09:26 PM
you know what, i've been coding php for several years now and never used that =D

i've used header but i've only ever used it for



header("Location: /newurl/somepage");


and for error messages such as making fake 404 pages


EDIT

tried your header();

firefox all good
ie7 dosnt refresh

Excavator
02-01-2007, 10:31 PM
Hello goughy000,
This has been redirecting from an old URL for me for years. Works in everything.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>name</title>
<meta http-equiv="refresh" content="0;URL=http://www.yourURL.html">
</head>
<body>
<p>Click <a href="http://www.yourURL.html">here</a> to goto the main page
manually.
</body>
</html>

goughy000
02-04-2007, 09:12 PM
Hello goughy000,
This has been redirecting from an old URL for me for years. Works in everything.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>name</title>
<meta http-equiv="refresh" content="0;URL=http://www.yourURL.html">
</head>
<body>
<p>Click <a href="http://www.yourURL.html">here</a> to goto the main page
manually.
</body>
</html>

if you read the thread properly you would have noticed that this is not the problem, i only get a problem when refreshing to a page with a bookmark.

(pageurl#bookmark)


i've got round it like this:

meta refresh in html without the bookmark
javascript to go to bookmark

works good enough for me

Thanx for everyones suggestions

_Aerospace_Eng_
02-05-2007, 02:38 AM
Hmm I just tested this and it works fine without the use of javascript in IE7.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum