Monthly Archives: August 2012

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+.
(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.
(more…)

Loading an image via the <img> tag using ColdFusion

· 32 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.
(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.
(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!
(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…
(more…)

Pausing an animation with jQuery

· Leave a comment · in JavaScript, jQuery

Starting an animation with jQuery is easy.

Stopping an animation with jQuery is easy.

But what if we want to “pause” and restart the animation?

Well, not so easy – so I dug in and figured a way to make this work cross-browser.
(more…)

Background animation using jQuery

· Leave a comment · in JavaScript, jQuery

You can actually animate a background image with jQuery – though it’s not as easy as it sounds.

There are cross-browser concerns.

I’ve tested many ways to achieve it and in this post there is code that should work cross-browser. Let’s dig in…
(more…)

Creating a namespace in JavaScript

· Leave a comment · in JavaScript

If you don’t namespace your code – you should.

It not only encloses the code but also gives it a unique name for reference.

This avoids “code collision”, where two like named objects or functions can break your code.
(more…)

Developer Tools

· Leave a comment · in Developer Tools

Here are some of the developer tools I’ve used with their pros and cons.

I’ve used many and will keep adding as time allows.

Editors
Imaging
Version Control
and more

(more…)