Prototype’s Autocompleter is really nice and easy to use, but out of the box it bases the width of the dropdown div on the corresponding text input. Check out line 4 here which contains the runoff of line 3 as well as the normal line 4 content. Of course, it’s simple to stop the line [...]
Entries from December 2007
December 2, 2007
Leading zeroes on Time.strftime
Not sure why this isn’t in the Ruby documentation (at least where I normally check) but the common annoyance of leading zeros on Time.strftime can be avoided simply by using “%l”. It does come with another inconvenience though: you get a leading space instead of a leading zero…