CFLib.org – Common Function Library Project

RedirectTo(location)

Last updated July 02, 2002

author

anthony petruzzi

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
A UDF version of cflocation that uses meta tags instead of a server-side redirect.

Return Values:
Returns a string.

Example:

<cfoutput>
Non-active example:<br>
redirectTo("http://www.foo.com")
</cfoutput>

Parameters:

Name Description Required
location URL to locate to. Yes

Full UDF Source:

/**
 * Works like cflocation.
 * 
 * @param location      URL to locate to. (Required)
 * @return Returns a string. 
 * @author anthony petruzzi (rip747@aol.com) 
 * @version 1, July 2, 2002 
 */
function redirectto(location){
    return "<meta http-equiv=""Refresh"" content=""0; URL=#location#"">";
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson