> So, I added this to the very top of our Application.cfm file (Bud, you
> may want to do this as a workaround, too):
>
> <script language="JavaScript"><!--
> if (document.URL.indexOf("www.humankindsystems.com")==-1){
>   document.location.href = "http://www.humankindsystems.com";
>   }
> //-->
> </script>
>
> Works like a charm.

Except when you give someone a full URL like
"http://hksi.net/imail-login.htm" or
"http://humankindsystems.com/home.htm?foobar=1", in which case the
better script is:

<script language="JavaScript"><!--
if (document.URL.indexOf("www.humankindsystems.com")==-1){
  document.location.href =
"http://www.humankindsystems.com<cfoutput>#CGI.script_name#<cfif
Len(CGI.query_string)>?#CGI.query_string#</cfif></cfoutput>";
  }
//-->
</script>

(Watch the line breaks there.)

Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]






------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to