Why won’t my jQuery work on WordPress?

I was having trouble with the demo from my jQuery plugin design pattern demo article, so I did a little research. I’d always had concerns with interoperability between the Prototype and jQuery toolkits, but never really fully understood why. Fortunately, Chris Coyier has written an excellent article that touches on the subject. Basically, there isContinue reading “Why won’t my jQuery work on WordPress?”

Why jQuery Rocks – Reason #41

I’ve spent much of my afternoon looking at implementing an elegant solution to enable a degree of keyboard navigation for what is effectively an HTML slideshow. I’d wired up a keypress event handler, but the tricky part actually turned out to be how to hide the current element and display the next (or preceding) one.Continue reading “Why jQuery Rocks – Reason #41”

A jQuery Plugin Design Pattern

I’ve been using jQuery quite extensively and I recently started encapsulating my code using the jQuery plug-in design pattern. I really like the way it reads and it’s already starting to make my code both safer and more reusable. One thing I find myself wanting to do quite frequently is to wire up the hoverContinue reading “A jQuery Plugin Design Pattern”