Coder's Block

Will Boyd's Portfolio

Feb 7

JavaScript String Replace Magic

Replacing strings in JavaScript is a fairly common task, but there are some nuances that might surprise the uninitiated, not to mention some really powerful features just below the surface. Read on to see. The Simple Case The most obvious way to do...
Sep 28

Highlight Text Inside a Textarea

Let’s start with the bad news. You can’t actually highlight text in a <textarea>. Any markup you would add to do so would simply display as plain text within the <textarea>. The good news is, with some carefully crafted...
Sep 19

Ember in Atlanta

Every once in a while I’ll make a “what I’m up to” post. I guess it’s time for one now. Along with some bonus rambling about Ember and Less. Back in Atlanta We moved out of Seattle and back to Atlanta. Seattle is a...
Jun 15

Checkbox Trickery with CSS

Checkboxes are great. Combine them with the right CSS and you can pull off some really neat tricks. This article aims to showcase some of the creative things you can do with checkboxes. Read on and keep in mind that the demos in this article use no...
Jun 1

Being Fluent in jQuery

This article is all about writing better jQuery code by using a technique called method chaining, made possible by jQuery’s fluent interface. So, yes, the title of this article is mostly a bad pun (sorry). Fluent Interwhat? jQuery’s...