Browsing articles from "October, 2011"
Oct
23
2011

Use jQuery and Modernizr to load javascript conditionally, based on existence of DOM element

In the past year or so, Modernizr has really exploded on the web development scene. It allows the detection of browser abilities, such as geolocation, canvas, etc. Version 2 also merged with yepnope.js which allows for the conditional loading of CSS & JS. If you don’t know what Modernizr is, their site provides lots of clear documentation to show you its’ power. The one thing that wasn’t clear to me, was if I could load […]

Oct
2
2011

How to use the jQuery plugin Colorbox from within an iframe

If you’ve ever needed a high quality lightbox and did some research, I’m sure you’ve come across the jQuery plugin Colorbox. It’s lightweight, themeable with just CSS, and very easy to use. I’ve been using it for a few years now, and have never had a reason to try something else. Anyway, I recently had to open up a Colorbox link from within an iframe, but in the parent window, not the iframe window. Lets […]