Using JQuery to enable optgroup in CForms

Posted by & filed under Developer Blog.

CForms II is an extremely robust and useful plugin for WordPress. One of the main frustrations I’ve noticed people have with it is the lack of optgroup support with select boxes. I wrote this little piece of JQuery code that will allow you to enable optgroup: if($(".cform").length!=0){ $(".cform select option").each(function(){ if($(this).val() == "groupstart"){ var label… Read more »

Getting MediaWiki Collapsible Nav to Load Collapsed

Posted by & filed under Developer Blog.

Whether you are using the old UsabilityInitiative extension, or the new split out Vector enhancements, you may have noticed an issue where the Collapsible Navigation functionality causes the first nav item in your list to remain open when the page loads. It doesn’t behave like the rest of the nav items that will remain in… Read more »

Time Tracking Report Bookmarklet for Basecamp

Posted by & filed under Developer Blog.

If you’ve ever tracked your time in Basecamp, and you are forgetful like me, you know that sometimes it’s a pain to go check how much time you’ve already tracked. When you forget to check your time as you go, you end up going back and fill in the blanks. The process involves a few… Read more »

Using JQuery to reveal using a slide up effect

Posted by & filed under Developer Blog.

The slideUp() method in JQuery is intended to hide the element rather than reveal it. It is basically the opposite of slideDown() which “unhides” your element by sliding it down. As you can see on this blog, I have an “About Jason Gill” tab in my heading. When clicked, this tab reveals information about who… Read more »

Scriptaculous Autocomplete Page Jump Using Arrow Keys

Posted by & filed under Developer Blog.

When you use overflow:auto in your css in conjunction with Scriptaculous’ Autocomplete, there is a bug that makes the entire page jump around when you use the arrow keys on your keyboard to navigate up and down through the suggestion list. This bug normally appears only when the page itself is long enough to require… Read more »