Archive for January, 2008

I ran across this web site this morning. Here’s a quote from the January 2008 page.
As far as I am concerned if an answer to a question isn’t in the bible, then the you have no business asking the question. A few years ago when my wife suddenly had to get an emergency c-section I was scared. But I didnt turn to any book about quarks. Luckily I had my palm pilot with me, which just happened to have the entire King James bible on it! I read a few passages that gave me the strength to pray for her and the baby to get through this ordeal. I sure didn’t need any useless trivia books about quarks to find comfort in. I have very little use for science. In fact it is in impediment to getting close to God.
The jQuery JavaScript library offers some quick and dirty solutions to many problems. I was perusing a jQuery email list when I ran across a simple problem that a beginner JavaScript coder like me could solve. I’ll simplify it a little here to focus this article. Basically, the poster wanted to add form fields to a table, but he wanted to increment a field counter in the HTML and in the id and name tags. Just to make it a little more difficult, the field numbers needed to be padded with leading zeros. Adding the table rows is trivial in jQuery and it turns out that leading zeros are pretty easy too. I like the “everything is an object” approach to JavaScript. You can extend even the built-in objects including the String object. Let’s tackle that first. (more…)
Go on. Take a look. It is really good and it makes sense.