CFLib.org – Common Function Library Project

getCurrentPage()

Last updated August 26, 2006

author

Jack Poe

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
Returns the filename of the current URL.

Return Values:
Returns a string.

Example:

The current page is: #getCurrentPage()#

Parameters:

No arguments.

Full UDF Source:

/**
 * Returns the filename of the current URL.
 * 
 * @return Returns a string. 
 * @author Jack Poe (jpoe@afit.edu) 
 * @version 1, August 26, 2006 
 */
function getCurrentPage() {
	var thisPage = spanExcluding(reverse(CGI.SCRIPT_NAME),'/');
	thisPage = reverse(thispage);
	return thisPage;
}
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