|
Other /
JavaScript HTTP Redirect pageOther.HTTPRedirect HistoryHide minor edits - Show changes to markup February 18, 2008, at 11:54 AM
by -
Deleted line 13:
Deleted line 14:
Deleted line 15:
Deleted line 16:
Deleted line 17:
Deleted line 18:
Deleted line 19:
Deleted line 20:
Deleted line 21:
Changed lines 23-27 from:
sThisURL = sThisURL.substring(0, location.href.lastIndexOf('\/'));
sThisURL = unescape( sThisURL + ':8080/IDMProv');
to:
sThisURL = sThisURL.substring(0, location.href.lastIndexOf('\/'));
sThisURL = unescape( sThisURL + ':8080/IDMProv');
Deleted line 26:
Deleted line 27:
Deleted line 28:
Deleted lines 30-31:
Deleted line 31:
Deleted line 32:
Deleted line 33:
Deleted line 34:
Deleted line 35:
Deleted line 36:
Deleted line 37:
Deleted line 38:
Deleted line 39:
Deleted line 40:
Deleted line 41:
Deleted line 42:
Deleted line 43:
Deleted lines 44-46:
Deleted line 45:
Deleted lines 46-48:
Deleted line 47:
Deleted line 48:
Changed lines 50-53 from:
<body bgcolor="white" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onLoad="doRedirect()"> </body> to:
<body bgcolor="white" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onLoad="doRedirect()"></body> Deleted line 51:
February 18, 2008, at 11:53 AM
by -
Added lines 9-10:
I am sure that there are ways to do the same with Python, PHP or Perl; but I use this script as it is easy, and low tech. Changed lines 13-14 from:
to:
<html> <!-- This is all just a super-duper redirect to the Welcome page
If the user has Javascript 1.1 installed, they don't get their history
messed up. Otherwise, it behaves like a normal redirect, and even has
fallbacks to non JS and browsers that don't handle the meta refresh tag
-->
<head>
<script language="JavaScript">
<!--
var sThisURL = window.location.href;
sThisURL = sThisURL.substring(0, location.href.lastIndexOf('\/'));
sThisURL = unescape( sThisURL + ':8080/IDMProv');
function doRedirect()
{
actualRedirect();
}
function actualRedirect()
{
setTimeout( "top.location.href = sThisURL", 500 );
}
//-->
</script>
<script language="JavaScript1.1">
<!--
function actualRedirect()
{
// this is a better way to do it if we have JS 1.1, not adding
// to the browser's history
top.location.replace( sThisURL );
}
if ( "MSIE" == navigator.appName )
doRedirect();
//-->
</script>
</head>
<body bgcolor="white" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onLoad="doRedirect()">
</body>
</html> February 18, 2008, at 11:50 AM
by -
Changed lines 1-2 from:
(title: Javascript HTTP Redirect page :) to:
(:title JavaScript HTTP Redirect page :) Changed lines 7-8 from:
If all these conditions are true, I place a simple HTTP Javascript Redirect as the default index.html page which, as the name implies, redirects the browser to the correct page. to:
If all these conditions are true, I place a simple HTTP JavaScript Redirect as the default index.html page which, as the name implies, redirects the browser to the correct page. Added lines 11-12:
Changed line 14 from:
:) to:
(:divend:) February 18, 2008, at 11:49 AM
by -
Changed line 12 from:
:div) to:
:) February 18, 2008, at 11:49 AM
by -
Changed lines 1-2 from:
(title: Javascript HTTP Redirect page:) to:
(title: Javascript HTTP Redirect page :) Added lines 9-12:
(:div style="border-style:ridge; border-width:2px; background-color:#ffffcc; margin-left:50px; overflow:auto; width:650px; height:500px;":) :div) February 18, 2008, at 11:48 AM
by -
Added lines 1-8:
(title: Javascript HTTP Redirect page:) Very often I need to install a service on a server where the following is true:
If all these conditions are true, I place a simple HTTP Javascript Redirect as the default index.html page which, as the name implies, redirects the browser to the correct page. |