Shaun Mccran

My digital playground

08
O
C
T
2008

Microsoft PhotoSynth

I was recently sent a link to the new Microsoft photo synth site.

[quote] Imagine being able to share the places and things you love using the cinematic quality of a movie, the control of a video game, and the mind-blowing detail of the real world. With nothing more than a bunch of photos, Photosynth creates an amazing new experience. [/quote]


Microsoft Photo Synth

It looks very interesting, I know I'll be having a play :-)

06
O
C
T
2008

Calling Component methods in one function call

Sometimes I want to return a data object from a specific method within a cfc, but in one hit. Why code an object creator, then a call to a method in that object, when you can do it in one go.

view plain print about
1<cfset variables.myFusebox = createObject("component","myFusebox").init(variables.FUSEBOX_APPLICATION_KEY,variables.attributes,variables) />

In the code above I am creating a variable "variables.myFuseBox". This becomes the return data from the object "myFuseBox" which is invoked with the createObject command. I am then passing the ".init" command to reference the "init" method in the CFC.

Lastly I'm passing in a list of arguments to the init method in the standard way.

26
A
U
G
2008

JavaScript checkBox checker and unchecker

A few times I've encountered the need to check, or uncheck a large column of records in a data display. Say you have one hundred records returned from a query, instead of having a user check each one, simply give them a button that allows them to check or uncheck a whole column in one go!

[ More ]

12
A
U
G
2008

Using if and else in Cfscript

Every CF developer is intimately familiar with the code. I was recently re-writing something that was entirely CfScript based, apart from a large chunk of 'IFS' in the middle of the template. So I thought I'd re-write it into CfScript. Turns out its very easy!

[ More ]

_UNKNOWNTRANSLATION_ /