Counting Characters in a Textarea with JavaScript

Tue, May 17, 2011 - 1:01am -- Isaac Sukin

About a year ago, I wrote about how I was using the JavaScript onKeyPress event to count the characters in a textarea. It turns out that among newer browsers, the trick I employed only works in Firefox. Other browsers (IE, Chrome, Safari, Opera) don't register keypress events for non-character keys like Control and Backspace. KeyUp and KeyDown have their own problems, but we can get around this by updating the character counter on both the KeyDown and KeyUp events. I've built a test below so that you can try it for yourself.

Hopes and Predictions for Drupal in 2011

Tue, Jan 18, 2011 - 2:34pm -- Isaac Sukin

Dries has already posted his Drupal 2010 retrospective and 2011 predictions. You can contribute your own thoughts in the comments on the related "Predictions for 2011" thread on Drupal.org. I agree with most of what's been written in both places. Here is my compilation of developments that I hope or expect to see this year.

How to Write a Drupal 7 Installation Profile

Mon, Jan 10, 2011 - 1:23pm -- Isaac Sukin

One of the features I'm most excited about in Drupal 7 is the greatly improved flexibility of installation profiles. However, documentation on writing an installation profile for Drupal 7 currently doesn't exist, so I thought I'd change that. Here's what I've discovered by reading through the code.

Installation profiles are like modules

Trends in Physical Product Consumption due to the Internet

Sat, Dec 18, 2010 - 3:30pm -- Isaac Sukin

There's a revolution going on, and it's more than what people think. The new, social, virtual world in which we're increasingly finding ourselves has opened the door to a wide variety of physical extensions to that online reality. In particular, a slew of price and product comparison tools have arisen, facilitated by the rise in ultra-mobile computing (namely smartphones). Additionally, new sharing tools are allowing us to focus on the experience or result we want from a product rather than the physical object itself. When we share an item or buy collaboratively, we extend the life of the product and also get utility from it at a lower price than the physical object required to deliver that experience. In other words, we are increasingly buying the hole rather than the power drill, the movie rather than the actual DVD, the transportation to work rather than the car… perhaps one day the sleep rather than the bed, the home rather than the house. The possibilities for entrepreneurs are endless right now.

And yet…

Pages

Subscribe to Isaac Sukin RSS