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.
Bulk inserts to reduce trips to database
By combining multiple inserts into one bulk insert statement, you can reduce the total number of statements sent to the database, speeding up combined execution…
Background Image – Stretched and Constrained Proportions
This morning, we set about finding a way to stretch a site background image with the following requirements: The background must fill the height and…