I was trying to come up with a way to use image sprites for background images, without needing to specify a ton of class names.…
Table background on alternate rows
3 ways to do this: jQuery #1 $('table tr:even').addClass('even'); jQuery #2 $('table tr:even').css('background-color', '#eee'); Background Image If you are certain that all table rows will…
Clean up paragraph margins with CSS
p { margin: 0; } p + p { margin-top: 1em; } This simple CSS trick will cause only the 2nd and following paragraphs to…
Expand / Collapse with jQuery – Part II
Since my first post on the subject, I was introduced to a jQuery method called nextUntil(). I didn't realize the possibilities with this method until…
IE Google Maps Operation Aborted
If you are one of the unlucky ones to receive an Operation Aborted message in Internet Explorer after attempting to embed a Google Map via…
IE Video Tag HTML 5
After further research of the HTML 5 spec, it seems that our little jQuery hack is unnecessary, as it's perfectly valid to place a "back-up"…
Replace submit buttons with a spinner on click
This has the dual purpose of letting the user know that the website is "processing", while not allowing them to click the submit button twice.…
ColdFusion / JDBC / MySQL & VarBinary fields
If you've used a varbinary field to store data, such as an encrypted password, you mind find that the JDBC Connector (used by ColdFusion) falls…
jQuery superscript register marks “on-the-fly”
The script below assumes that the content area of your site is wrapped in a div tag with an id of content. The first portion…
ColdFusion – copy form or url scope to request scope
<cfset StructAppend(request, form)> OR <cfset StructAppend(request, url)> Handy in the event that you're not sure which scope to expect your "inputs" from.