Category

jQuery


jQuery Bootstrap-style Dropdowns

March 8, 2012

A really awesome framework called Bootstrap was recently released by a couple of guys at Twitter. You probably already heard of it by now. And you probably already fell in love with it.  Today I made a plugin that replicates the features of Bootstrap’s dropdown to better suit my needs. Continue »

jQuery MiniColors (A Tiny Color Picker)

February 24, 2011

While developing Surreal CMS, we found the need for a simple jQuery-based color picker.  What we wanted was something very simple, preferably something that piggy-backed an input control.  While we found an extensive number of color picker plugins available, we failed to find any that were simple and compact enough for our needs (except for Continue »

Smoothly Scroll to an Element Without a jQuery Plugin

January 22, 2010

After spending some time looking for a plugin to do this, I was amazed to see how easy it was to get a smooth scrolling effect using one line of jQuery.  You can use this inside of any callback function.  It works especially well with click. Continue »

jQuery $.live(‘click’) Binds Both the Left and Right Mouse Buttons

May 14, 2009

A little jQuery $.live(‘click’) gotcha and an easy work around for it. Continue »

Manipulating Stylesheets with Greasemonkey

January 11, 2009

A set of useful snippets to work with styles in Greasemonkey. Continue »

Prevent White Noise From Appearing in Images After Fading

January 10, 2009

A bug in Internet Explorer causes white space to appear in certain images after fading. Continue »

$.postJSON() for jQuery

May 31, 2008

POST an AJAX request and have jQuery parse the response as JSON data. Continue »

jQuery File Tree

March 25, 2008

A configurable, AJAX file browser plugin for jQuery. Continue »

jQuery Checkboxes: Select All, Select None, and Invert Selection

December 9, 2007

Learn how to add helpful checkbox behaviors with a few lines of jQuery. Continue »

External Popup Links Using jQuery

November 14, 2007

How to make XHTML links that popup a new window and degrade gracefully using the jQuery JavaScript Library. Continue »