Wednesday, November 25, 2009

JavaScript, a Disappointment

Yesterday I needed an improved version of the JavaScript textarea widget. Ah! I'll write my own text editor.

That's not a trivial task, but it's the core of my C++ book (an excellent tutorial, but sadly it dates back to DOS). I had already done the design and the step-by-step, how to build it thinking. That's probably half the battle. I thought that I could have a working, if minimal, text editor in about a day.

Nope. Was into the project for about an hour when it came time to program the Insert key to toggle insert/overstrike modes. Brick wall. There was no way to distinguish Insert from the minus sign. None. And this in Opera, which is the best of the PC browsers.

Redesigned the project to work with the unimproved JavaScript textarea widget.

As I write this, Obama is pardoning the turkey at the White House. I am not pardoning this turkey.

0 comments:

Post a Comment