Check out my latest project: Code Dumper

Archive for the "jQuery" Tag

Idiot Proofing the jQuery.ready

I'm always writing quick prototypes of ideas I've got, and often they'll include some quick jQuery. However, for reasons unbeknownst to me, about 1/3 of the time I forget to wrap the statements in a .ready() function, and since I have the habit of putting my script tags in the head - the code never fires. [...]

Upgraded jQuery Tag Suggestions

After lots of great feedback, I've upgraded the jQuery Tag Suggest Plugin. This post covers the fixes and upgrades.

Visited plugin

The idea that you can track which links users have visited re-emerged earlier this month. In my (rather drawn out) blog redesign process, I considered that when showing a list of del.icio.us link, I could hide those ones my visitor had already been to. Here's a jQuery plugin to filter for just visited links: jquery.visited.js

jQuery API Browser

Ever since jQuery 1.1.3 the old API browser hasn't been updated due to incompatibilities in the documentation (though that's mostly assumptions). Although the new docs is comprehensive, I've always liked the quick access the old API browser gave. As such, I've got about my own way re-building an API browser based on the new documentation. Check [...]

Poor man's JavaScript Behaviours

JavaScript behaviours are roughly defined as an event handler that is set once, then handled by elements that are created on the fly later on. For example, if I have a list of links referencing images which are loaded inline, adding an removing the links from this list would not require me to re-hook the event [...]

Fixing IE overflow problem

Until recently, I didn't know IE (both 6 and 7) had an overflow problem. But it does. I found it on my personal blog, and my pet project: jQuery for Designers - it's particular visible because I use a lot of code examples. Here's a detailed account of the problem, and it's fix.

Ajax validation pattern

Inline form validation is the way forward with any web site today, and I've found I've been able to extract this process out in to a simple plugin that can be applied anywhere throughout my code using the the following pattern.