#208 bug
Clément Hallet

catching "windows media player" object events

Reported by Clément Hallet | July 7th, 2008 @ 01:53 PM | in After 1.7


I found a particular bug using WMP objects driven by javascript.

Those kind of objects can generete dom events, for instance the "PlayStateChange" event when the stream is buffered, played ...

Contrary to all other IE events, it doesn't have the 'on' prefix.

This basic javascript code works fine:


But, since the "observe" method add a 'on' with IE, that prototype code doesn't work (the event is never catched) :


I can't figure what the solution could be, maybe by checking the element type (if its tag is "object") and don't add the 'on' ?

I have tested it with IE6 and IE7. I don't know what the behaviour would be with firefox and the WMP plugin.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins