Insert Text Into Textareas Using Javascript

The other day, I was working on a script to allow administrators to edit templates within the admin center of the content management system I’m developing. Rather than just using a plain textarea with the contents of the template files, I wanted to add some simple functions with javascript. First, I wanted to set it up so that the tab button would insert a tab rather than skipping to the next form field. Second, I wanted to add a list of the various template tags that can be used in the CMS, and allow the admins to click on one of those to insert it in the textarea.

Google Releases a Browser

Google officially released the first beta version of their browser today. The browser is called Chrome, and is intended to go head-to-head with Microsoft’s Internet Explorer (then again, what browser hasn’t been released with that goal in mind?).

I have downloaded and installed Chrome on my Vista machine at home, and am writing this post from within Chrome right now. I have to say that, at first glance, I am extremely impressed at how little screen real estate the browser’s window takes up. If all browsers were to take a note from Google’s browser, visitors’ screen resolutions might actually start to mean something.

Opera 9.5 Available

Although it slipped under the radar with everyone getting ramped up for the release of Firefox 3; the folks at Opera released a new version of their browser a few weeks ago. On June 12, Opera 9.5 was released, and apparently includes quite a few updates.

Reformatting a Computer is a Tedious Process

About a week ago, my parents provided me with the recovery discs that originally came with the eMachines computer they gave my family last year.  The computer has been running dreadfully slowly since they gave it to us, and it’s been getting worse by the week.

Of course, the kids are the main users of the computer, so I’m sure it’s become chock full of all kinds of tracking cookies, spyware, adware and everything else from the various things they try to download.  Therefore, I decided to completely reconfigure the computer, starting with the recovery disc.

I backed up the handful of files that were on the computer that I needed, and then restarted with the recovery disc in the drive.

Gripes about Google Analytics

I’m not usually one to look a gift horse in the mouth, but I’m a bit peeved with Google and their Analytics utilities.

For the past year or so, I have been using Google Analytics and have been extremely impressed with the reports it provides on all of my Web sites. However, there has always been one aspect of the Analytics utility that’s driven me crazy: the tracking code always causes javascript warnings.

I was hopeful, however, when I logged into my Analytics account today and noticed that Google is providing new tracking code for Analytics users. I copied the code and promptly pasted it into the template for one of my sites. Much to my chagrin, when I loaded the page in Firefox and checked my code debugger, I found that the new code produces just as many, if not more, errors as the old.

Why is it so difficult for these large organizations, including Google, Yahoo!, Microsoft and so many more, to produce usable, clean, efficient, error-free code? Why do we have to continue putting up with these types of issues from organizations that probably employ more full-time coders than anyone else in the world?

UPDATE – I’ve added some screen shots of my error console after the jump.

Pages: