JavaScript Fall Through Switch Statements

Someone recently asked me if it were possible to easily execute the same code for two or more possible case values in a JavaScript switch statement.

[More]

Dynamically Changing jQuery UI Accordion Tab Headings

If you're into using jQuery UI (and who's not?) then this is an easy way to change the heading of a jQuery accordion tab style heading to reflect user focus.

[More]

A quick SQL Server tip

Have you ever wanted to quickly migrate selected table data back and fourth from your dev database to your live database? If the answer is yes then this one's for you.

[More]

HELP! Have you ever successfully output a cfchart within a cfdocument?

I have a cfchart (flash format) that works great within a normal cfm page. I'm running CF 8 so I should be able to embed the cfchart within a cfdocument but for whatever reason I cannot. If I change the chart format to png or jpg then I get a red x and if I run it as a flash format I get nothing. Has anyone out there ran into this and lived to tell the tale?

UPDATE: Outputting the cfchart in png format will work if the localUrl attribute is removed (or set to false).

Getting Started with jQuery UI Dialogs

So I've been slowly learning jQuery over the last two weeks and today I wanted to see how I could duplicate the cool overlay style and functionality of a cfwindow. As it turns out, jQuery UI makes this super simple with Dialogs.

[More]

Looking for a MySQL equivalent for SQL Server's ISNULL function?

SQL Server has a well known and widely used ISNULL function that actually replaces a null column value or null subquery value with whatever you specify. For example, if you were to write

view plain print about
1SELECT ISNULL(UnitPrice,0)
2FROM InventoryItem

then you would have zeros returned in your result set for all InventoryItem table records that had a NULL value for the UnitPrice field. Ever tried to do that in MySQL? It doesn't work because MySQL's ISNULL function simply returns a value telling you whether or not the argument to the ISNULL function was NULL or not. Not as cool when compared to SQL Server's nifty replace type of functionality now is it? But wait, no need to talk smack about MySQL - for there is another great and easy to use command in MySQL that will give us the same result!

[More]

Using jQuery load in place of a cfdiv

As many of you know, yesterday I ventured into the world of jQuery for the first time. I'm a little late to the party so I've decided that in order to get proficient with jQuery before the apocalypse I'm going to have to use it in my everyday client development tasks.

To give you some background, I have a long, on-going project where I'm creating a warehouse management/manufacturing application using ColdFusion 8 and SQL Server 2005. The app is huge and I've been using lots of out of the box cfajax widgets and cfajaxproxy to do cool things. I wanted to see how tough it would be to make jQuery do the same type of thing that I would normally use a cfdiv to accomplish. The quick answer? Easy, easy, easy - so easy that I couldn't believe it and had to ask Ray Camden if it were truly that easy or if I had made some sort of lucky mistake. I said, "Ray - it's too fast and too easy" and he said "Is that even AIR that you're breathing???" so here we go!

[More]

My first foray into the world of jQuery

Well, I've finally gotten curious enough to give jQuery a try. Don't cry Adobe - your super powerful cfajaxproxy tag along with some of your widgets (which I don't know whether to hug or strangle on an hourly basis) have and will continue to serve me well. I finished my Certified ColdFusion Expert test earlier this month and now I'm on the prowl to learn something that will prove to be useful along with being exciting, challenging and new. It doesn't appear as though this jQuery phenomenon is going anywhere - so what do I have to lose!

[More]

Using CFAJAXPROXY to Check Yourself Before You Wreck Yourself!

Many web apps that are used for CRUD activities (INSERT, UPDATE and DELETE statements) employ tables that simply have what is often referred to as a manufactured key. Most people more commonly know this as an auto-increment or auto-numbered identity style of primary key and it is typically stored as a data type that's an integer of some sort. This is great until you're working on something a bit bigger, say a business app, and you want the key to a subsidiary table to hold meaning to the end user throughout the app. Perhaps you're setting up location codes or category codes for instance, the value 5 will probably not mean a lot to an end user when filtering inventory reports by location code and it unfortunately forces the user to perform mental lookups to remember that 5 truly means a location of 'Chicago'.

So let's say that you make the decision to structure lookup tables using user defined key values - would you know how to use CF to help maintain referential integrity in your database while not endlessly frustrating your end users?

[More]

Using CF and AJAX to dynamically show and hide divs based on database values

Showing and hiding form and document elements on a page can be pretty useful when you're trying to walk a user through a process and you only want them to interact with controls that are geared towards to the task at hand.

[More]

Previous Entries / More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.5.007. Contact Blog Owner