Coldfusion is a programming language more properly referred to as CFML. Coldfusion was the original web application server and CFML was the language created to write scripts for this server. Originally created by Allaire, Coldfusion is an Adobe product today. Other CFML engines include Railo and ...

learn more… | top users | synonyms

1
vote
1answer
39 views

Looking for code quality suggestions with my open source CFML database project

I just posted a small open source CFML project on github.com, https://github.com/jetendo/db-dot-cfc db.cfc is a standalone CFC with 472 lines of code. Anyone interested in reviewing the way this code ...
1
vote
5answers
386 views

A couple of basic string parsing functions

I have an app that does a fair bit of text-parsing based on free-form user inputs. In this, I run searches on the whole string, and then on the last value of the string separate from the rest of the ...
1
vote
2answers
62 views

Loading site configuration from ini file

I load in static setting via an ini file. Ini file have the benefits of NOT being server by most web servers by default. easier to edit than XML even simplier than JSON Setting get loaded in ...
1
vote
0answers
40 views

Optimizing image transfer script in Coldfusion

<cfftp connection = "myConnection" username = "#username#" password = "#password#" server = "#server#" action = "open" timeout = ...
1
vote
3answers
218 views

Regex to get all image links - is this efficient?

I have some pretty basic Regex that scans the output of a HTML file (the whole document source) and attempts to extract all of the absolute links that look like images. Whether they are actually ...
1
vote
1answer
73 views

optimizing the code - new to coldfusion

I have the following code, but it somehow looks a bit redundant. As I am new to ColdFusion, I am not sure how to optimize it. Can someone suggest an alternative? <cfparam name="url.idInfopage" ...
0
votes
0answers
30 views

Reading HR-XML from DB

When I read a table with HR-XML, I tap into a view CREATE VIEW [dbo].[vwUser] AS WITH XMLNAMESPACES (DEFAULT 'http://ns.hr-xml.org/2007-04-15') SELECT UserID, login, passhash, ...
0
votes
0answers
18 views

Loading HR-XML PersonName into DB

I am currently loading HR-XML Person name with: <cffunction name="commit" returnType="boolean" access="remote"> <cfargument name="UserID" required="true" type="string"> <cfargument ...
0
votes
0answers
34 views

Outgoing Message Queue

All controllers extend from base.cfc which has // 0 -> Info, 1 -> Warning, 2 -> Error, 3 -> Fatal, -1 -> Debug (not normally shown) void function addMessage(required string message, ...
1
vote
2answers
104 views

Can someone please check how to write it in a better way?

<cfargument name="Key" required="true" type="string" /> <cfargument name="Value" required="true" type="any" /> <cfif NOT StructKeyExists( Session, this.LOCAL ) > ...
2
votes
3answers
244 views

Simple Function To Turn Array Of Objects To Array Of Key Value Pairs

I have an application that has a lot of very complex objects that in most cases I only need to access an id value and a name value from. I'd like to reduce the overhead of serializing these large ...
5
votes
2answers
241 views

Should I treat direct CFC Calls differently than Page Requests?

Should I leave in <cfif reFindNoCase( "\.cfc$" , targetPage ) eq 0> or not? I'm using ColdFusion 8. Direct CFC calls are flushed when the method returns. Either way onRequestEnd will stop ...
3
votes
1answer
909 views

Upload Multiple Files

I created a few form for faculty members to nominate colleagues for awards. Many of the nominations require documentation to be submitted in order to validate the nomination. I created one form then ...