My latest web project has just launched - a mobile-optimised version of the successful LoveHoney website, where I've been doing web and ColdFusion work on and off for the last couple of years.
LoveHoney have been selling sex toys and lingerie in the UK and around the world for 6 years - so be warned, the sites may not be safe for work! (So all the more reason to browse on your mobile phone...)
Read more »
Posted on 28 June, 2009, in
iPhone, ColdFusion
Every now and again, I come across something in ColdFusion that really bugs me. This is today’s annoyance.
When using <cfoutput> to loop over a query, the query attribute cannot be a function name. For example, I have a CFC with a method getRoles(), which returns a query.
I would have expected that the following would work:
<cfoutput query="getRoles()">
...
</cfoutput>
…but this throws an error. So I am forced to add extra code to work around it:
<cfset qRoles = getRoles() />
<cfoutput query="qRoles">
...
</cfoutput>
I’m sure there’s a logical reason why this should be the case, and that someone will tell me what it is, but I just find it irritating.
Posted on 25 June, 2009, in
ColdFusion
Here's a plugin I've had on the back burner for a while, but Adam finally coaxed me into finishing it! (Thanks also to Adam for beta-testing it for me...)
CFFormProtect is a great anti-spam system written by Jake Munson, which uses a number of tests to determine if a blog comment is spam - all without any extra input required by the commenter. So say goodbye to those CAPTCHAs!
Read more »
Posted on 14 April, 2009, in
ColdFusion, Mango Blog
Another plugin I've been working on for a little while now, and I think it's ready for release!
This plugin creates a sidebar pod which shows your recently-listened tracks on Last.fm - you can see it in action on the side of my site.
Update: the plugin has been updated to version 1.0.6, adding more display options.
Read more »
Posted on 24 February, 2009, in
ColdFusion, Mango Blog
Following on from my previous post, I'll now expand on the BasePlugin.cfc component provided with Mango 1.3.
BasePlugin.cfc contains a number of commonly used, unchanging functions which will remove the need to specify them every time you write a plugin.
These include getters and setters, preference handling and saving, and access to the plugin's assets directory.
The easiest way to show you what's going on is with an example...
Read more »
Posted on 24 February, 2009, in
ColdFusion, Mango Blog