Entries for month: December 2007

Working on a new project, a coldfusion image gallery

I have looked around some online, and not found a nice pretty image gallery for free, in CF, that I liked. So, here goes my effort to write one.

I started it this past week, and while I am off next week I hope to get the majority of it complete. Im writing this with CF8 in mind, and plan on packing up Model-Glue, transfer, coldspring, jQuery, and anything else I need in the mix into 1 easy to distribute file. I plan on using the new cfimage functions to manipulate / thumbnail images, and the plan is to make this super easy to add new images via a bulk upload into a specific location, then running an import page that will allow captioning and titles. I will use the same page style as my blog, BluePigment 1.0 by Styleshout

I still need to choose a license, but I hope that this can be my 1st open-source project, and hosted on RiaForge.

3 comments

jQuery - Javascript 2.0

For those of you working with javascript without jQuery, Im sorry. After getting to know jQuery with several projects, Im a convert and never going back. To take a peek, head over to jQuery Home. Their documentation is great, but let me show you a common task that is really a breeze with jQuery.



Example 1: onMouseOver / out



Everyone has had to do the onMouseOver(dothis), onMouseOut(doThat). Well, jQuery has a nice built in function called hover. You use it like this:


$("td").hover(
function () {
$(this).addClass("hover");
},
function () {
$(this).removeClass("hover");
}
);


Lets break this down. The 1st part: $("td") invokes the query like portion of jQuery, and is called the selector. This is saying find any element in my DOM of the class td, then apply the hover attributes too it. The 1st function is run when you mouse into your td, and the 2nd when you mouse out, with some internal controls to ensure you dont get that annoying flicker. You can also see the addClass() and removeClass() functions, which do exactly like you would think, adding or removing classes from the results of your selector (all the tds).

I really think you owe it to yourself to check out jQuery. With some of the best documentation of any javascript library out there, small download, and tons of features and addons, its the best thing Javascript has going.

1 comments

Site Refresh - opinions?

I updated the site with a template from http://www.styleshout.com/. What do you guys think? Some of the links are not live yet, but overall I think its lookin decent. I know, its *very* blue, but thats my favorite web color. =)

5 comments