Posts tagged with “jquery”
jQuery Textarea Expander Plugin
Ok, I love Ballpark, but the thing that I'd have to say annoys me the most (aside from no time tracking) is the fact that line item descrption fields are so small.

So instead of just complaining more, I took a few minutes and put together a simple solution, a jQuery plugin anyone can implement when the page layout simply isn't designed for a large textarea box, but one is neccessary.
Essentially, it just creates a new textarea that floats on top of the selected one on focus. Pretty novel, but hopefully some people can make use of this... Ballpark? Please?
You can find Textarea Expander on Github.
Demo
Sample Usage
Load the jQuery library, included style.css and then on document load run the following.
jQuery, Tables, & Show / Hide
So maybe I'm just an idiot and this would be obvious to others, but it completely confused me for a large portion of the night, so I thought I'd share in hopes of helping some other unfortunate soul.
The Problem
I was using a jQuery function to show / hide elements, first on a table row, then when that didn't work, a table column. The problem is that jQuery's show method sets an element's display attribute to "block," completely ignoring that it should instead be "table-column." This causes some issues to say the least.
The Solution
Well this is where you've got some options... what I ended up doing was just creating a div element within the td and running the show / hide on that instead. You could as an alternative to this, create a custom show method that would simply set the display type correctly to table cell, column, or whatever.