Star Wars Crawl

· Leave a comment · in HTML5, JavaScript

Star Wars CrawlThis is my homage to the original “Star Wars” in HTML5, CSS and JavaScript.

It’s coded to run on an iPhone but viewable in the latest versions of Firefox, Safari and Chrome. You can also view on an iPad or iTouch. But not in IE.

Uses a combination of HTML5, CSS animation and JavaScript.
Read more

SteelSeries 9HD Professional Gaming Mouse Pad

· 4 Comments · in More, Reviews

Ever since I started using the SteelSeries 9HD Professional Gaming Mouse Pad for my front-end development I’ve wondered how I ever did without it!

These pads, combined with a Logitech mouse, gives you pinpoint accuracy when cutting images, measuring and anything else you need to accomplish.
Read more

Slice a query string and store as object values using JavaScript

· 2 Comments · in JavaScript

I recently had a need to reuse query string values multiple times on a page.

Calling a function that parses the query string each time just isn’t efficient.

I decided to use a self-executing function I wrote that stores the values as properties of an object.

Read more

Bind events to future elements using jQuery’s .on()

· Leave a comment · in jQuery

I loved the feature of jQuery .live() binding to future elements – but it had problems.

It’s replacement, .on(), DOES NOT bind to future elements by default.

The following explains how to bind future elements using .on().
Read more

Processing files in ColdFusion with an extension other than .cfm

· 1 Comment · in Coldfusion, IIS, More

Want to run ColdFusion code on a page but don’t want the .cfm extension?

Or you have existing pages with an extension of .html and want to add CF code?

You need to update CF and IIS.

These instructions apply to ColdFusion version 9 and IIS 7+.
Read more

Using jQuery to loop thru DOM objects with optional delay

· 9 Comments · in JavaScript, jQuery

You want to loop through a collection of DOM objects, so you use .each().

But what if you want to have a delay between effects on the current item?

In short – don’t use .each() for looping – and don’t use setTimeout for the delay.

We’re going to call items by index instead, optionally using a clever way to add a delay.
Read more

Loading an image via the <img> tag using ColdFusion

· 33 Comments · in Coldfusion, More

I wrote a basic routine to accomplish this awhile back using <CFImage> and decided to revisit it.

I found out it needed major rework!

There were all types of exceptions dealing with transparent png and gif files.

After spending 2+ days on it, I believe the following is a solid solution.
Read more

Allowing an iframe to manipulate itself on same domain using only JavaScript

· 4 Comments · in JavaScript

Ok, this one I wrote is kinda cool. :)

I was working on a large corporate site that had iframes all over the place.

They had internal content(same domain) that would show up inside these iframes.
Read more

jQuery and JavaScript snippets

· Leave a comment · in JavaScript, jQuery

This is a list of useful snippets that do not garner their own posts.

The jQuery snippets have been tested with version 1.7.2+.

If you have any to contribute, email them to me and I will post them!
Read more

Load an external stylesheet using JavaScript

· 5 Comments · in CSS, JavaScript

There are times when you may not want to load a CSS file on page load, especially if it is a large file.

You can load that external file using only JavaScript.

Here’s how…
Read more