Shaun Mccran

My digital playground

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 ]

04
A
U
G
2008

JavaScript Confirm function

Recently I've been using the JavaScript confirm method to confirm if a user has clicked on the right thing or not. A handy 'catch-and-verify' fail safe.

[ More ]

24
J
U
L
2008

SQL Formatting a numeric field to 2 decimal places

Need to format a field to a certain number of decimal places?

Just do this:

[ More ]

_UNKNOWNTRANSLATION_ /