News by Glenn Gervais

Using CFAjaxProxy in a Shared Hosting Environment

11 Sep 05:43
As I mentioned in my last post (Drag and Drop Sorting with CFAjaxProxy and Script.aculo.us) I’ve started to use CFAjaxProxy. It’s been very easy to integrate and I had no problems at all on my local machine. However, after posting my work to a live site my AJAX functionality ceased working. Thanks to Firebug, I [...

Drag and Drop Sorting with CFAjaxProxy and Script.aculo.us

25 Aug 13:39
I made a video player recently containing a list of videos. My client requested the ability to put them in a custom order. It didn’t take much research to find the functionality in the Script.aculo.us library. The question was, how do I implement it with ColdFusion? I knew I would need AJAX functionality and, up to [...

CFQUERYPARAM with LIKE and IN Clauses

23 Jul 22:44
ColdFusion’s CFQUERYPARAM tag is important for several reasons, most notably data type validation, improved query performance, and foiling SQL injection attacks. Basic usage is simple: SELECT * FROM tblCustomers WHERE customer_id = <cfqueryparam value="#FORM.custID#" cfsqltype="cf_sql_integer"> The cfsqltype parameter validates the passed value before it is sent to the database server. Once validated, the query is sent to the database [...

Use to Generate Temporary Thumbnails

21 Jun 00:10
I’m wrapping up a sizable project that required 200×200 thumbnails for about two thousand pieces of content. The agency I’m working with required properly-sized thumbnails to proceed with their testing. Unfortunately, thumbnails did not exist at that point. ColdFusion <CFIMAGE> to the rescue! By using <CFIMAGE>, I was able to generate thumbnails for every piece of [...

Passing an Array or Object using Flash AS3 Remoting? Don’t Forget the Object Encoding!

21 May 06:12
Earlier today I posted about an issue I was having when attempting to pass a structure to a ColdFusion web service using AS3 netConnection. Whenever I attempted to pass a structure to the web service, the call would be rejected before it even reached the method it was calling. The error I was receiving was [...

Is it possible to pass a structure to ColdFusion using Flash AS3 / Remoting

21 May 00:57
UPDATE: This problem has been solved. The solution is after the post. I’ve posted on a few forums now with no results so I’m resorting to my own blog. What I’m trying to do is pass a structure to a ColdFusion component from Flash. I’ve tried using Array, Object, and Dictionary types but it keeps failing [...

ColdFusion Dynamic Argument Naming in Method Calls

27 Feb 02:32
I created a custom tag recently that required a method argument name be passed as an attribute. While I’m familiar with the usual techniques of using dynamic variable names, they didn’t work in this situation. Here’s what I was attempting to do: Main Page <cfmodule template="customtags/deleteRecord.cfm" idValue = "1" idColumn = "colName" /> Custom Tag <cfset obj = createObject("component","com.mycomponent")> <cfset qRecord = [...