Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #24492

Re: Event target in browsers

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Event target in browsers
Date 2014-05-30 21:38 +0200
Organization PointedEars Software (PES)
Message-ID <6964107.iMWki3ZdQI@PointedEars.de> (permalink)
References <69413$5387765f$6def49ce$18425@nntpswitch.blueworldhosting.com> <5294499.JCWY7Ix9cy@PointedEars.de> <a8b0e$5388c83f$6def49ce$30211@nntpswitch.blueworldhosting.com> <5388cc48$0$6672$9b4e6d93@newsspool3.arcor-online.net>

Show all headers | View raw


Christoph Michael Becker wrote:

> Cezary Tomczyk wrote:
>> True, I forgot about "window.event" for IE < 9. For browsers that do not
>> support "currentTarget" Christoph mention about solution, also I'll take
>> a look at http://pointedears.de/wsvn/JSX/trunk/dom/events.js.
> 
> If you are referring to my comment regarding "this", be aware that this
> will not work for IE/MSHTML < 9.

It will work there, but …

> See
> <http://www.quirksmode.org/blog/archives/2005/08/addevent_consid.html>
> for details and
> <https://developer.mozilla.org/en-US/docs/Web/API/event.currentTarget#Browser_compatibility>
> for a workaround that may be viable.

… not if you use the MSHTML-proprietary attachEvent().  So you are better 
off not calling that method.  See also the comment in JSX:dom/events.js.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Event target in browsers Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2014-05-29 20:03 +0200
  Re: Event target in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-29 22:35 +0200
    Re: Event target in browsers Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-30 13:26 +0200
      Re: Event target in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 14:31 +0200
        Re: Event target in browsers Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-30 17:50 +0200
          Re: Event target in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-01 22:19 +0200
    Re: Event target in browsers Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2014-05-30 20:04 +0200
      Re: Event target in browsers Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-30 20:22 +0200
        Re: Event target in browsers Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2014-05-30 20:43 +0200
          Re: Event target in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 21:47 +0200
            Re: Event target in browsers Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-30 22:29 +0200
              Re: Event target in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-31 00:07 +0200
                Re: Event target in browsers Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-02 14:53 +0200
                Re: Event target in browsers Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-02 21:41 +0200
        Re: Event target in browsers Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 21:38 +0200

csiph-web