Posts Tagged ‘JavaScript’

So, I drank a whole pot of coffee yesterday. And it was a black, black, pot of coffee--like the soul of an exploded quasar, black. Twelve hours later (midnight), I was buzzing. So, what did I do? I wrote a jQuery library. Check out the project on github: jquery.playingcards. Check out a demo here. The […]

Thursday, June 3rd, 2010 at 10:09 | Comments Off on Deck of Playing Cards in JavaScript
Categories: CSS, JavaScript, jQuery

OK, I know this is the millionth blog post claiming to have the right way to validate email addresses, but here me out: Regular expressions are awesome--and I mean Wrath of Kaaaaahn! awesome. They yield the unholy power to make or break your system, to secure or rip apart your entry points. Woven wisely, they […]

Friday, September 4th, 2009 at 21:11 | Comments Off on Email Validation Using Regular Expressions (the right way… really)

Download a working demo here (.zip) It's very common to want to add default text to a textarea or text input field and have that text vanish when a user clicks to edit the field. When the user clicks away from the field, if the field is still empty, we should bring back the default […]

Tuesday, September 1st, 2009 at 11:13 | Comments Off on Using jQuery to Handle Dynamic Default Text in Form Fields