IE9 will have addEventListener, finally!

| 1 Comment

Microsoft has released a testdrive version of IE9 that includes support for:

  1. addEventListener()
  2. CSS3 Selectors
  3. CSS border-radius style for rounded corners
  4. SVG (no word on <canvas>, as far as I know, however)

Items 2, 3 & 4 are probably bigger news than item 1, but IE's lack of support for addEventListener() has always really irritated me. Finally, more than a decade after it was standardized, IE will support it. That means that by 2015 we can stop writing code that checks for addEventListener() and falls back on attachEvent().

1 Comment

Hi David:
I purchased your JS 5th Edition, and am anxiously awaiting the 6th Edition in august.

In the meantime, I'm struggling with handler.js in Chapter 17.

I'm including the handler.js in one of my apps, but cannot find an example of its usage ?

I tried to use the following construction:

Handler.add("hole09","click","tester") ;

as a test of of the handler.js on my IE7 system.

I got the following error in your handler.js code:
"Object doesn't support this property or method"

on the following line(s)
// Now register that nested function as our event handler.
element.attachEvent("on" + eventType, wrappedHandler);

I hope you can provide a real example or two of using your handler.js

Thanks !

-Mel Smith

Leave a comment

Books

Comprehensive coverage of Ruby 1.8 and 1.9

"The New Most Important Ruby Book"
Peter Cooper,
rubyinside.com

Completely updated for Ajax and Web 2.0

"A must-have reference"
Brendan Eich,
creator of JavaScript

The classic Java quick-reference

Advertising

Pages

Hosted By

Powered by Movable Type 4.21-en