CFLib.org – Common Function Library Project

RedirectTo(location)

Last updated July 2, 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#"">";
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson