My recent entry addEvent() considered harmful generated many interesting comments and technical pointers. It's clear that the original
addEvent() function doesn't quite cut the cake any more, and it's equally clear that we badly need a function such as this to keep our scripts simple.
Hence I'd like to take the opportunity to launch an
addEvent() recoding contest. Write your own version of
Entries will be judged by a panel consisting of Scott Andrew LePera, Dean Edwards and myself on script quality, simplicity and portability, and the clarity of your explanation.
The prize will consist of eternal and undying fame. Scott, Dean and I will do everything in our power to spread the winning entry as the new standard
addEvent() script. Your script might be used by a new generation of web developers, and your name could become a household name.
Create your entry as follows:
removeEvent()functions that obey the guidelines below. Add an English explanation of your script.
Any entry to the contest must obey the following guidelines:
thiskeyword. Making sure that it works in Explorer Windows is a major part of the contest.
<li>, one pair for the foldout/in, and one pair for setting and removing the borders. Your functions must therefore be able to set several event handlers for the same event on the same element.
removeEvent()must be able to remove one event handler but leave the other one one intact.
In this entry I allow only comments that link to an entry for the contest. All other comments will be removed.
I’m around at the following conferences:
Comments are closed.