Tuesday, August 30, 2005

Know your (event) sources

A loooong time ago I wrote this tutoral on JavaScript events, in which I included a cross-browser event handling script called addEvent.

Today, Peter-Paul Koch: addEvent Considered Harmful. And he's right, you can get into all kinds of headaches using IE's attachEvent method, as my own addEvent snippet does. Be sure to read the ensuing comment thread for some interesting alternative approaches.

Caveat implementor, my friends.

PS: I'm rather pleased that something I wrote merits a "considered harmful" treatise! I'm in good company.

12 Comments:

At 10:17 AM, Blogger Isofarro said...

Thanks for creating these functions in the first place. They were - and still are - a great starting point for writing unobtrusive JavaScript. Hopefully there'll be a fix found for "this" particular problem.

 
At 7:12 AM, Blogger Joe Muka said...

Hi, Saw your site late night. Some of your ideas I may use for my site about voip pbx It's kind of a boring topic...I liked some of your info.

 
At 11:38 PM, Blogger Joe Muka said...

Just checking out blogs for ideas to add to my site about verizon voip and other voip stuff. (I know its a boring subject) I liked your site

 
At 12:08 AM, Blogger My VoIp Solutions said...

Hi Thanks for your interesting blog. I also have a blog/site, covering buster voip related stuff. Feel free to visit my buster voip site.

 
At 1:56 AM, Blogger haidi said...

Hi,

We may share some interest part of telecommunications story or update, so visit my website **Telecom** site/blog. It pretty much covers Telecommunications Updates related stuff.

Have a nice day.
Otai

 
At 11:07 AM, Blogger Ian Hash ( ) said...

Hi

Please can any one help me to manage a stick up footer on the website for IE 5.0 +. I Think its with CSS or Javascript r both.

As you can see 1 on http://www.bmw.co.uk

thanks

Imran Hashmi

 
At 10:32 AM, Blogger The Computer Guys said...

Yo, you have a Terrific blog here! Lots of content means more readers, more readers means more Sales!
I'm definitely going to bookmark you!
I have a dsl connection speeddsl connection speed site/blog. It pretty much covers dsl connection speed Problems with your Windows Xp Computing !
Come and check it out if you get time We are just a Click Away ! :-)

 
At 12:20 PM, Blogger Hoodia said...

Help me Dude, I think I'm lost..... I was searching for Elvis and somehow ended up in your blog, but you know I'm sure I saw him in a car lot yesterday, which is really strange because the last time I saw him was in the supermarket. No honest really, he was right there in front of me, next to the steaks singing "Love me Tender". He said to me (his lip was only slightly curled) "Boy, you need to get yourself a San Diego cosmetic surgery doctor ,to fit into those blue suede shoes of yours. But Elvis said in the Ghetto nobody can afford a San Diego plastic surgery doctor. Dude I'm All Shook Up said Elvis. I think I'll have me another cheeseburger. Then I'm gonna go round and see Michael Jackson and we're gonna watch a waaaay cool make-over show featuring some Tijuana dentists on the TV in the back of my Hummer. And then he just walked out of the supermarket singing. . . "You give me love and consolation,
You give me strength to carry on " Strange day or what? :-)

 
At 8:00 PM, Blogger Freddies Blog said...

Last month I made $12,124 with Google Adsense... Click
here for free information on how you can do the same!

 
At 11:26 PM, Blogger rokkgod said...

I love this blog you got here. I run a movie review website and need people to do movie reviews.Movie Reviews. Thanks...sorry to be self promoting..at least you get some fresh text content.

 
At 6:11 AM, Blogger Mizambar 6294 said...

Last month, I earned $12,124 from Google Adsense, click here for free information to find out how you can do the same

 
At 1:56 PM, Blogger Freddies Blog said...

Last month, I earned $12,124 from Google Adsense, click here for free information to find out how you can do the same

 

Post a Comment

<< Home