bLaTheR: Part 1

Breathes there a web designer with wallet so fed who never to himself hath said, “Cutting and pasting this Lorem Ipsum stuff is utter tedium. It doesn’t look like English, and the first word isn’t even Latin.” Technologies have come a long way since cut and paste, and the time has come to use technologies for placeholder text in web design.

This is the story of how bLaTheR, a Lorem Ipsum replacement, was born, and the computer science behind it. In part 2, we will cover the use of bLaTheR for populating web pages. Continue reading

Remove an Element from an HTML String with jQuery

While working on a project for work today, I encountered a problem that I apparently have never encountered before. What I thought was a very simple function call in jQuery turned out to be a bit more complicated. I needed to removed an HTML element from a string representation of an HTML snippet. jQuery doesn’t quite behave the way I expected and I had trouble finding a solution Continue reading

jQuery Plugin to Toggle Default Field Value on Focus and Blur

I can’t begin to count the number of times I have coded the same search field with the default value “Search…” in it and so that when the field receives focus, the text is cleared but magically reappears when the field blurs. Every time I code it I know I should save that snippet of code somewhere but it is always faster to just write it anew each time. Well, no more. I finally got around to writing jQuery plugin to allow me to add the focus/blur default value toggle to any field. I have very creatively named the plugin ‘Defaultify’. Continue reading