Click to See Complete Forum and Search --> : Meta refresh and secure sites
Magenta
02-06-2003, 01:53 PM
I have a standard meta refresh link from an .htm page to an .asp page, which works fine on our non-secure staging server and our non-secure test server. But on our secure test server (ie, https:// etc) it does not work - it "sticks" on the redirecting page.
Anyone know why this should be? The path in the link is relative (it has to be).
Going to try a javascript refresh tomorrow but don't know if this will work.
Many thanks,
M
Zach Elfers
02-06-2003, 02:09 PM
He is a JavaScript refresh:
<script type="text/JavaScript">
<!--
function redirect(page) {
self.location.href = page;
}
function timeReload(page) {
window.setTimeout("redirect(page);", 5000); // the time is in miliseconds.
}
//-->
</script>
...
<body onLoad="timeReload('site.html');">
Magenta
02-06-2003, 02:14 PM
Thanks Zach - that's pretty close to what's going in tomorrow - but do you know if this will work on the secure servers when the html one didn't? Also I'd love to know why the html one doesn't work.
Zach Elfers
02-06-2003, 02:18 PM
I have no idea if you will work or not. It might.:confused:
Magenta
02-07-2003, 12:30 PM
Well I'm sure you were all dying to know - it worked!
The problem was that the server was running a separate refresh in the background as part of the secure time-out function. It was conflicting with my refresh. The JavaScript version is doing fine though.