[thelist] looking for HACK for events

Jeff Howden jeff at jeffhowden.com
Wed Oct 8 13:23:23 CDT 2003


walter,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: jsWalter
>
> Anyone have any tricks for attaching more than one
> method to a single event?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

all the keywords necessary to find more info are in your message.  ;)

unfortunately there isn't a way of doing it that's cross-browser, short of
building your own event handler registration mechanisms.

however, that being said, here's some links to useful info:

msie

attachEvent()
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/attacheven
t.asp

detachEvent()
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/detacheven
t.asp

dom2

addEventListener()
http://www.mozilla.org/docs/dom/domref/dom_el_ref31.html

removeEventListener()
http://www.mozilla.org/docs/dom/domref/dom_el_ref55.html

custom event registration that handles msie and dom2
http://www.doxdesk.com/software/js/event.html

.jeff

——————————————————————————————————————————————————————
Jeff Howden - Web Application Specialist
Résumé - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/



More information about the thelist mailing list