Skip to content


Tasha Bit Me, and That Really Hurts

As I learned last night, it is never a good idea to try hand feeding a pill to a dog when that dog is still chewing on food.

As I stuck my left hand in her mouth (to hold it open while I popped the pill in with my right hand), I had my thumb too far back near the molars. As she continued chewing her food, she punctured right through the middle of my thumb’s fingernail with one of her pointy premolars. Blood instantly started flowing out of the hole, and the pain was intense. I washed it with antibacterial soap, and ran it under cold water for several minutes. Eventually the blood stopped flowing and I could see the small, purplish splotch in the center of my nail surrounding the crack. I put some antibiotic ointment on the wound and wrapped a bandaid around it.

A small amount of blood continues to make its way out of the hole in my nail today. I’m not sure yet whether that nail is going to fall off or not. A dull, throbbing pain continues, but it’s bearable. My impatience cost me, but I’ve learned my lesson. It was my fault, but I won’t make that mistake again.

http://www.youtube.com/watch?v=HE4FJL2IDEs

Posted in General.

Internet Explorer 6: You Had a Good Run… Now Please Die

A recent look at some analytics showed that 66.82% of visitors to the NH Academie of Dance website were using Internet Explorer (IE). Of those users, 26.04% were using IE 6, which was 17.4% of the total visits. You people still using IE 6 (and you know who you are), it’s time to upgrade! Several Web Applications are dropping support for IE 6, and I’d like nothing better than drop support for it as well. So please… I’m begging you… help us put IE 6 to rest, and upgrade to a better browsing experience.

Posted in General, Web Development.

Comparing JavaScript Frameworks

While reading the YUI 3 forum, I came upon some links which perform some tests using multiple libraries. I found them very useful and will probably use them as a reference from time to time:
http://yuilibrary.com/~msweeney/yui-tests/taskspeed/
http://yuilibrary.com/~msweeney/yui-tests/slickspeed/

Posted in General, Web Development. Tagged with , , .

Cross Browser XMLHttpRequest

I recently did a lot of investigating around the best way to create an XMLHttpRequest, as various resources on the web use slightly different methods. Newer browsers (Chrome, Firefox, IE7+, Opera, and Safari) all have a native XMLHttpRequest object, so the exception is really IE versions less than 7.

Internet Explorer 5, 5.5, and 6 all support XMLHttpRequest by means of an ActiveXObject. But there are various versions of MSXML, and it was not clear to me which versions should be used, and in which order they should be declared. Microsoft recommended some versions, but their recommendation was 3 years old and I wasn’t sure if it was still applicable (or applicable at all when using MSXML for creating XMLHTTP objects). It turns out that it was.

Initially I wanted to support the widest range of browsers, including IE5 and IE5.5. However, those versions of IE are no longer supported by Microsoft, so why should I try and support them? I have no way to test in those versions. More research suggested that IE5 and IE5.5 account for only about .02% of browser market share (2 people out of 10,000) from August 2009 - October 2009. It doesn’t make sense to try and support IE5.x, which means there is no need to support the legacy Microsoft.XMLHTTP ActiveXObject.

That just leaves IE6. IE6 still has considerable market share, so I do want to support it. IE6 shipped with MSXML 3.0, which is the “fallback” version to use recommended by Microsoft. Previous versions of MSXML are no longer supported by Microsoft, so MSXML 3.0 will be my fallback version. The recommended version is MSXML 6.0 (note, it is NOT recommended to use MSXML 5.0 or MSXML 4.0).

So now I’m going to be working with a set of 3 possible objects:

  1. a native XMLHttpRequest object
  2. an MSXML 6.0 XMLHTTP ActiveXObject (IE6 only)
  3. an MSXML 3.0 XMLHTTP ActiveXObject (IE6 only, when MSXML 6.0 not available)

To see how I decided to format that code, visit:
http://www.webmasterworld.com/javascript/4027629.htm

Posted in AJAX, General, Web Development. Tagged with , , , .