473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

IE passes event object to handler / Flanagan's blog

Hi,

It seems there is a long standing belief that in IE does not pass the
event object to the handler functions attached with attachevent() to a
DOM element. Coincidently, I was confused about a week ago by the fact
that an event object is, in fact, passed to the handler but I didn't
investigate this further. Now David Flanagan is organizing and effort
to figure out what is going on and where this belief came from. Perhaps
someone here knows what's going on and could head over to his blog and
explain the situation.

<URL http://www.davidflanagan.com>

Thank you,
Peter

Oct 27 '06 #1
1 1246
VK
It seems there is a long standing belief that in IE does not pass the
event object to the handler functions attached with attachevent() to a
DOM element.
The really long standing allusion on the matter is that attachEvent is
a buggy implemented equivalent of addEventListener so everyone is
trying to analyse it from this position.
In fact attachEvent and addEventListener are what I would call (as a
joke term) "homofuncs" by analogy with homophones.
Homophones are words that are pronounced alike even if they differ in
spelling, meaning, or origin, such as "pair" and "pear".
"Homofuncs" would be then programming entities from different
environments that are producing seemly similar results in some
particular usage despite they differ in their nature and real purpose.

This post explains it in details and with samples:
<http://groups.google.com/group/comp.lang.javascript/msg/78281e500f55079c>

The explanation to the attachEvent "argument" is that it is trying to
jump on the bound method in the global context of its behavior, but
there are neither first nor second so it's just a "poor lost baby".

I don't think that we should report it to Flanagan though you are
welcome to. Over years it became a well-established tradition to talk
about badly broken attachEvent method on IE. Maybe just keep it "entre
nous"?

Oct 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
1
by: Jerry J | last post by:
I'm trying to understand how many threads are involved when a client event handler is called. I am using a simple .net windows application. I click a button on a form that triggers an event. ...
6
by: mg | last post by:
The code below creates an ImageButton when a LinkButton is clicked. How can I create an event handler for this ImageButton which can't be seen in Design? private void...
1
by: Divya | last post by:
Hello This is my 1st project where I have to create a Webcontrol. I have created a simple custom control with a button and 2 labels added to a panel. My problem is that the event handler that I...
6
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
10
by: amiga500 | last post by:
Hello, I have one basic simple question. When I have multiple records in the datagrid as follows: Code Product 1 Product 2 Product 3 11111 A B C...
8
by: moondaddy | last post by:
I'm working in WPF and c# and am adding an event handler to an object like this: this.tgt.SizeChanged += new SizeChangedEventHandler(OnTargetSizeChanged); Later I kill the instance of...
0
by: RobinS | last post by:
My application needs to know when the network availability has changed and do some stuff when it does. I wrote a small WinForms app to test System.Net.NetworkAvailabilityChanged. It works great....
15
by: RobG | last post by:
When using createEvent, an eventType parameter must be provided as an argument. This can be one of those specified in DOM 2 or 3 Events, or it might be a proprietary eventType. My problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.