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


Groups > comp.lang.javascript > #32163

Re: custom event in IE

Path csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From James Kirk <noneya.invalid@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: custom event in IE
Date Tue, 10 Jan 2017 21:52:12 -0500
Organization Time Travel Tracing
Lines 30
Message-ID <20170110215212.00003a50@gmail.com> (permalink)
References <ZpKdncuDJ6SUqenFnZ2dnUU7-YHNnZ2d@westnet.com.au> <8bydnVoLx8BUq-nFnZ2dnUU7-bednZ2d@westnet.com.au> <4259298.GXAFRqVoOG@PointedEars.de> <drGdnYqmpYpK_unFnZ2dnUU7-bfNnZ2d@westnet.com.au>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace solani.org 1484103133 8117 eJwNjckRACAIxFriRsoRdPsvQR/5ZRLX4Ji08DCHw641qHx0nSK6tWMjgM1TElc1Fyf3KKUOmCwScBFaLf0R/gYZ31SW88s4+w9E2hZX2wN8JR1X (11 Jan 2017 02:52:13 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Wed, 11 Jan 2017 02:52:13 +0000 (UTC)
X-NNTP-Posting-Host eJwNzEkRwAAIBDBLXAtFDkfxL6H9ZwJ19glzuOFwJxsv4XiyFTyhtSe+TJ2qQtInrKFNC0Egh4TtL+o0CW36C458K5ZTDZjyM9RjxpD+AGpkHRM=
X-User-ID eJwFwYEBwCAIA7CXpNAC56iT/09YQpfpZogKDmf3KzOQ0BlbHRDaHXiD7ZksXZvU+apZb/37Pg/x
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4QEKEi0Ee/RCuwAAADBQTFRFAAAAERERIiIiMzMzREREVVVVZmZmd3d3iIiImZmZqqqqu7u7zMzM3d3d7u7u////exAYCgAAAeJJREFUOI110jFP20AUB/DjI/AR2FlA6pi5A+lIWxUYoVDBWuiQLh34AgghBOpQEMImMCAE2LFZUAWx3WwphHvnFYnaWSFOfD2f4+eDmJPii/4/vWf7/Ah/ZZH8b+y9ApHrF8PBmz+FENHL6ULoevRtowiqADt2AfQowN937UHogFgf/EFIcji2BmE7AaVXBt1aAvSj/xIeZSv4xZ5Dz/jiSWh+V6Brum5tKa1olSEIwhQeao7jGJUUYE78AhYmoJtinVh92JEtWZuTWBN5bbefQ1P2ZD4nHVmxkUGrJLeAk0fdNLS9qQzgU7pxcq+fzo4NjyKs1TXNBPBJXb8cIUMzCMdXq8uTFdYgdfP689x4FaH57evs+4qoaIlbGz88hNtSGIYBADGMBDCHuwm5/SPJa5wv5wDz8kqJJt7jfEKBtXQjhijZH1VAHgoDEhmb5kZJgd/bSSdLHHuPXS0pcLO4abqQfqi4qsBtuYFfMPYUaJXzTxsrOdwt5BBhaInLSg5P/VxnoQ1sVYFA5lZavO4jPMhDMOUUemzvAoEm4KRDGMHZTwR536P+pNlnhypQNxvB6NpGEA/p4JhzFRi9wJzTLQQb3DwXs4xQVQtEgzaCo+a842dw8KyAcwSLDy5SkMn1H2I//vncnGt3AAAAAElFTkSuQmCC
X-Operating-System Windows 3.0
Cancel-Lock sha1:OWOhd8IH9gfaK/k8LsR5qA3EAT0=
Xref csiph.com comp.lang.javascript:32163

Show key headers only | View raw


Andrew Poulos <ap_prog@hotmail.com> wrote:

> On 10/01/2017 12:45 PM, Thomas 'PointedEars' Lahn wrote:

>> Andrew Poulos wrote:

>>> On 10/01/2017 12:08 PM, Andrew Poulos wrote: 

[snip]

>>> I've solved it. I was looking in MDN and not MSDN. 

>> Care to share? 

> I used a try/catch and when it fails for IE the "catch" part uses 
> initCustomEvent
> <https://msdn.microsoft.com/en-us/library/ff975987(v=vs.85).aspx>
> to create the event:

I have always tried to avoid using try/catch. So just out of my own
curiosity, why the try/catch over something liking to the function from:

[url]https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill[/url]

or testing in a similar fashion to that function.

[snip]

-- 
James Kirk

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


Thread

custom event in IE Andrew Poulos <ap_prog@hotmail.com> - 2017-01-10 12:08 +1100
  Re: custom event in IE Andrew Poulos <ap_prog@hotmail.com> - 2017-01-10 12:20 +1100
    Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-10 02:45 +0100
      Re: custom event in IE Andrew Poulos <ap_prog@hotmail.com> - 2017-01-10 15:32 +1100
        Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-10 12:53 +0100
          Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-11 08:25 +0100
        Re: custom event in IE James Kirk <noneya.invalid@gmail.com> - 2017-01-10 21:52 -0500
          Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-11 04:09 +0100
            Re: custom event in IE James Kirk <noneya.invalid@gmail.com> - 2017-01-11 21:31 -0500
              Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-12 14:22 +0100
            Re: custom event in IE Scott Sauyet <scott@sauyet.com> - 2017-01-14 23:01 +0000
              Re: custom event in IE "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-15 09:51 -0800
                Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-15 22:37 +0100
                Can we recognize Constructor Functions (was: custom event in IE) Scott Sauyet <scott@sauyet.com> - 2017-01-15 23:39 +0000
                Re: custom event in IE Scott Sauyet <scott@sauyet.com> - 2017-01-15 23:15 +0000
                Re: custom event in IE "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-15 22:36 -0800
                Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-16 12:54 +0100
                Re: custom event in IE "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-01-16 14:18 -0800
                Re: custom event in IE Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-01-17 00:24 +0100

csiph-web