ColdFusion Snippets


ColdFusion Snippets

ColdFusion code that I use in my web application development.

CFSetting Tag With Start / End Tags

This is a custom tag that allows you to format code via CFSetting regardless of surrounding tags.
Updated September 28, 2006

Creating Web Site Thumbnails Using ColdFusion And WebShot v.1

This demos the abilities of WebShot v.1 to create a thumbnail preview of the web page at a given URL.
Updated September 15, 2006

FileToQuery( strFile, strDelimiter, blnHeaderRow, strColumnList )

This takes a character-delimited data file and parses it out into a query object.
Updated May 5, 2006

Handling 404 Errors in ColdFusion

This demonstrates how to handle 404 errors in ColdFusion that are thrown by IIS.
Updated September 22, 2006

Image Hot Linking Work-Around

This uses the CFHttp to grab images from servers that do not allow hot linking (extrernal refrences) to local images.
Updated July 13, 2006

Image Hot Linking Work-Around (Full Demo)

This uses the CFHttp to grab images from servers that do not allow hot linking (extrernal refrences) to local images.
Updated July 13, 2006

JREGet( strContent, strRegExp )

This uses a Java regular expression to build an array of matching groups found in the given content.
Updated April 20, 2006

JREGetNoCase( strText, strRegExp )

This uses Java case-insensitive regular expression to return an array of every substring matched by the regular expression.
Updated April 28, 2006

JREReplace( strText, strRE, strNewText, strScope )

This does the same thing as ColdFusion's REReplace() but uses more powerful Java regular expressions.
Updated April 21, 2006

ListToStruct( strList, strDelimiter1, strDelimiter2 )

Parses out a dual-delimited list into an equivalent key-value struct.
Updated April 23, 2006

Nesting ColdFusion Custom Tags

This is a simple example of how to nest custom tags and associate child data with the parent base tags.
Updated September 26, 2006

New Employee Aptitude Test : Version I

Help determine if a potential employee has what it takes to be a quality ColdFusion programmer.
Updated May 4, 2006

QueryAppend( qOne, qTwo )

This demo explores two ways to append to queries together in ColdFusion.
Updated July 5, 2006

QueryToArray( qRecordSet )

This demonstrates how to convert a ColdFusion query into a ColdFusion array of structures.
Updated July 10, 2006

QueryToStruct( qRecordSet, intRowIndex )

This demonstrates how to turn an entire query object or a single record into a ColdFusion struct.
Updated July 19, 2006

RandDateRange( dtFrom, dtTo )

This demonstrates how to generate a random date between two given dates.
Updated July 7, 2006

Randomly Sorting An Array In ColdFusion

This demonstrates how to take an array in ColdFusion and sort it in a random order.
Updated September 19, 2006

StructToList( objData, strDelimiter1, strDelimiter2, blnUrlEncoded )

Converts a structure to a dual-delimited list.
Updated May 1, 2006


Home   |   Web Log   |   ColdFusion   |   Projects   |   Resume   |   Job Form   |   Search   |   Contact
Epicenter Consulting - Custom Software Solutions for Business Evolution HostMySite.com - The Leader In ColdFusion Hosting