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 = $(this).text(); ...
Read MoreGetting MediaWiki Collapsible Nav to Load Collapsed
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 their closed or open state when you move to another page in your wiki. It simply remains open no matter what. If...
Read MoreTime Tracking Report Bookmarklet for Basecamp
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 too many clicks, and not any way to really create a shortcut. First, you need to click the Time tab, which shows everyone in your group’s...
Read MoreUsing JQuery to reveal using a slide up effect
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 I am by sliding upward. In figuring out how to do this, I of course consulted the Google gods and came up with...
Read MoreScriptaculous Autocomplete Page Jump Using Arrow Keys
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 a scroll bar. I managed to come up with a very clean working solution by hacking the controls.js file that comes with...
Read More


Stalk Me