• Home
  • About Jon Dowdle
  • Lifestream
  • Code from TDD Demystified through Kat...
    Passing

    A big thanks to everyone that came out for today's CFMeetup. The code is located here and the presentation is located here. While practicing for this presentation, I noticed [...]

    Read more
KEEP IN TOUCH

New jQuery Plugin: Taggable

Jun14
2010
Written by Jon Dowdle

Summary for the busy

  • Allows elements to become "tags" and "taggable"
  • Easily customizable actions on tag / untag
  • Download here (plugin only)
  • Download here (with examples)
  • Fork it here

Motivation

I've really enjoyed using jQuery over the last few years. It's been quite wonderful really. Outside of the core being easy to use and very solid, the plugins available really make jQuery sizzle.

So I thought I'd take a crack at writing my very own plugin. My main goal was to imitate the tagging interface you've seen in some desktop UIs, with Evernote being my main inspiration.

Lessons Learned

A few things I learned while writing the plugin:

  1. Writing a jQuery plugin is not that hard
  2. Developing jQuery plugins isĀ  really really fun (no really, it is)

Details

The plugin requires jQuery and jQuery UI. Once you have the jQuery requirements and the plugin file, using the plugin is simple. Just call .taggable() on the element that you want to have tags attached to. There are various ways to customize it beyond this of course. For those details, check out the README.

Other Tag-ish Plugins Out There

I fought the urge to look at existing work, mainly so that I could learn as much from tripping over my own two feet as possible. Upon writing this post, I decided 'why not' and Googled around for "jquery plugins tag" and other permutations. I was thrilled to see that it doesn't look like there are any other plugins that do quite this. All of the other options turn input into tags or create tag clouds.

Posted in Code - Tagged jQuery, plugins, taggable, tags
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« WikiText & Eclipse: Making Documentation Easier
» Taggable Demo Video

2 Comments

  1. John Farrar's Gravatar John Farrar
    June 15, 2010 at 10:53 am | Permalink

    OK… could you do a video demo to show what you are showing?

    • Jon Dowdle's Gravatar Jon Dowdle
      June 24, 2010 at 2:03 pm | Permalink

      @John Yup, that’s a great idea. I’m working on one now. I hope to have it done by the end of the week.

  1. Tweets that mention New jQuery Plugin: Taggable -- Topsy.com on June 14, 2010 at 2:23 pm

Recent Posts

  • Code from TDD Demystified through Katas
  • Awesome Web Development Links Found This Week
  • Taggable Demo Video (now with more code)
  • Taggable Demo Video
  • New jQuery Plugin: Taggable

Categories

  • Code
    • MySQL
    • Programming
    • Web Design
  • coldfusion
  • Life
    • Events
  • Reviews
  • Uncategorized
  • Work

Tags

adobe barcamp barcamporlando coldfusion ComplexByteArrayException concat conferences decorator design pattern Events firebug Form fowa html IE ignite infection control iterator javascript job jQuery movies MySql orlando Photos pirate booty pirates plugins poll project python railo software development sql stackoverflow stax.net style taggable tags talk like a pirate tips & tricks tools twitter washington dc Web Design

RSS Syndication

  • All posts
  • All comments

EvoLve theme by Theme4Press  •  Powered by WordPress jDowdle.com