Skip to content

Posts tagged ‘Coldfusion’

26
May

Closing Slashes and Cold Fusion Tags

A couple of developers and I have been discussing the practice of adding a closing slash to single line Cold Fusion tags. IE: <cfset variables.sexyLady = "Olivia Munn"> <!— Vs. —> <cfset variables.sexyLady = "Olivia Munn" /> Some are of the camp that the closing slash is an extra key stroke and a waste Read moreRead more
2
Nov

A Little More Hate For Coldfusion [IsDate() Method]

Coldfusion’s IsDate() method has fooled me for the last time. Where as any self respecting programmer would think that a method name IsDate, that returns a value of ‘yes’ or ‘no’ no less, would be checking to ensure that the date in fact is valid. That is where I was Read moreRead more
20
Oct

ColdFusion, PreserveSingleQuotes(), And Array Values

I think I may have stumbled upon some odd, unexpected and (definitely) undesired behavior with ColdFusion. The application that I’m working on has a module which needs to create a bit of dynamic SQL. Not a problem here, as I step through my conditions I’m populating an array that I Read moreRead more
3
Oct

Clearing Up A Little Confusion Regarding StructKeyExists() Vs. IsDefined() While Parsing XML [ColdFusion]

This is something really simple that I consistently overlook. When considering StructKeyExists() or IsDefined(), StructKeyExists() normally always wins. It’s scope parameter instructs ColdFusion where to look for a particular variable, where as IsDefined() forces Cold Fusion to search through all the scopes. The performance impact is obvious. A possible exception Read moreRead more
25
Sep

ColdFusion Causes Frustration {HTML Input Element Arrays}

I don’t understand why ColdFusion insists on making things difficult. I’ve come to understand that it is not possible for ColdFusion to make use of inherent input arrays when one or more input elements is left empty. For some reason ColdFusion always drops the empty values from the array. I Read moreRead more
17
Sep

Pulling A Substring Out Of A String With Regular Expressions And ColdFusion 8

I have a love/hate relationship with Coldfusion. (Okay, so it’s more hate than love) But one of the aspects of the programming language that I have come to love is it’s simplicity with dealing with regular expressions. Using predefined methods such as reFind() and reReplace() have made task, which could Read moreRead more
23
Mar

Cold Fusion String Stripping

I’m tired of google-ing for a good Coldfusion string stripping reference, so I’ve found what I believe to be the most efficient way accomplishing this task (ala Regular Expressions) and am posting them here for my own reference. If these can help anyone else out in the process… great! <!— // Read moreRead more
27
Dec

Coldfusion .columnList Variable Attribute Presents A Problem.

The problem: I need to grab both column labels and row values from my database based on nothing more than a passed table name. Getting the data is easy, and getting the column labels is easier thanks Coldfusion’s variable attributes but it isn’t quite what I want. The cfquery results attribute Read moreRead more