JavaScript

Use of jQuery noConflict();

Published by Cory on Monday, August 17, 2009

In my short time of using jQuery I've come across the invaluable method of noConflict(). Why is it so handy? Well, in the world of web design and development, there are lots of very useful JavaScript libraries out there (i.e. YUI, MooTools, Prototype) and several of them use "$" to represent an object. If you are using this syntax within jQuery and another conflicting library simultaneously, you are likely going to run into some unexpected behavior.

Luckily noConflict() is very simple to use and you won't have to go swapping out all your "$" with "jQuery". And to keep it simplistic I'll use the following code to show you how to implement it.

$(function() {
  $("#foo").click(
    // your code here
  )
 
  // any additional code
});

Intro to jQuery

Published by Cory on Friday, June 12, 2009

jQueryYesterday, I began my jQuery journey. After honing my JavaScript skills over the past year or so, it became evident I needed to add a JavaScript library to my toolbox of web knowledge. I'm almost 24 hours into my endeavor and I can sum it up in a single word: . Wait, I take that back...words can't describe how awesome jQuery is! (Ok, maybe there is a little too much "man love" for a JavaScript library, but...so what!)

NYTimes '1-Click' search feature

Published by Cory on Tuesday, September 16, 2008

1-ClickA fellow co-worker (Dusty Segretto) just pointed something out to me that I thought was an intriguing idea. I've never seen this implemented and it definitely took me by surprise.

If you visit the NY Times website and click-thru to one of their articles, a "hidden" search is available for any term on that page. I refer to it as a hidden search because it isn't blatantly obvious that this functionality exists.

Rotating banner using JavaScript

Published by Cory on Wednesday, June 04, 2008

Currently at work we are using an Adobe Flash® for an ad rotator to show different promotions to our customers. Due to recent issues we are trying to come up with a way to improve the process to make updating it, as easy as possible. Not being a flash guy, I decided to venture out to find a solution using JavaScript. After a quick Google® search nothing peaked my interest, so I decided to try and write the solution from scratch.

Syndicate content