There are times where it would be great to apply a given style to the 2nd, 3rd, 4th, etc. element of a parent. This is…
ColdFusion dynamic sitemap
I searched the web this morning in hopes that someone has already written a recursive sitemap generator in ColdFusion. It may be out there, but…
MySQL Duplicate Key issues
So you're doing a bulk import into your MySQL database, knowing that your primary key values are unique. Yet, MySQL throws the Duplicate Key message…
Play button on video thumbnails
Here’s a quick method to add a play button to video thumbnails. This is useful when you generate dynamic thumbnails for videos, or grab them…
Vertically center a div with jQuery
$('.vcenter').each(function() { $(this).css('margin-top', (parseInt($(this).parent().css('height')) – parseInt($(this).css('height'))) / 2); });
Browser won’t read dynamic css file
Occasionally you find the need throw some dynamic information into your CSS file. This usually entails giving your CSS file an extension that will force…
AJAX calls being cached
I spent a couple hours this morning trying to figure out why Internet Explorer was return the same result from an AJAX request which returns…
cfimage resizing issues
If you are using the ColdFusion image resize tag to size down images, you may occasionally run into an error during resizing. Although your web…
Page specific CSS
One major decision when it comes to performance optimizing your site is how to merge your CSS files, if at all. Let's say that you…
JavaScript For loop vs. jQuery $.each function
Comparing jQuery each function vs. javascript for loop for iterating through a large array. We're assuming that the jQuery method would be measurably slower, as…