The possibilities of jQuery

Now that WordPress has moved to jQuery as its JavaScript engine (as of 2.3), there is a whole new world opened to the the plug in developer. While it has always been possible to develop a plug in for WordPress which makes use of a JavaScript component, the potential collisions with the other libraries were consistently problematic and a plug in which captured the ‘onload’ event could break all of the JavaScript on a page.

Enter jQuery:

jQuery, with its $(document).ready event nicely solves this problem. No longer does the developer need to hack JavaScript files outside of their package in order to make sure that the system execution proceeds smoothly. With the addition of XPath style selection, jQuery becomes an incredibly powerful tool for modifying WordPress without needing to delve incredibly deeply into the WordPress PlugIn API.

To that end, I am going to be writing a series of tutorials on trickery with WordPress and jQuery. I’ll add links here as theses go up.

Leave a Reply