Check out my latest project: JSBin - live JavaScript pastebin

Archive for the "jQuery" Tag

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.

jQuery Tag Suggestion

If you're familiar with del.icio.us you will be familiar with the tag suggesting as-you-type support. The reason why, I believe, the tagging works so well within del.icio.us is that it helps you create a subset of tags that you commonly use for different types of links. This way, it makes it easier to find tagged [...]

Prototype and jQuery - going from one to the other

During a conversion with John Resig at the FOWA he mentioned it would be useful to have a tutorial that explained what jQuery doesn't do that Prototype does and visa versa, and in particular how X process is done in each library.

What is JSONP?

jQuery 1.2 introduced JSONP support, but on initial read of the release notes, I wasn't completely sure what it was - so for anyone else that might want the Dr Seuss explanation. JSONP is script tag injection, passing the response from the server in to a user specified function

Catch click events before the DOM is loaded

I'm currently working on a project that's heavily JavaScript driven. One of the key goals of the project is to get the user to click a bright yellow button (I won't go in to any more detail than that). The button is perfect, it's eye catching and when you see it, you just want to [...]