hi diego,

the EventListener is transfering the id of the surrounding div
because the event does not reference the checkbox directly.
it could be that the user clicked on a label element with a for
attribute... technically the label element would trigger the event
and not the checkbox thus referencing the dom node of the label.
.. or maybe there is a node between <input> and </input>

... maybe ff and ie handle this scenario differently... i'll test it
and report my results on monday :)

another solution would be to have a small script in place (onclick) 
that checks the incoming events on the div node and triggers the
eventlistener (script) method only if it could determine it really 
originates from the checkbox... thats what i do for my bubbling events :)

g,
kris







Diego <[EMAIL PROTECTED]> 
13.04.2007 09:43
Bitte antworten an
"Tapestry users" <[EMAIL PROTECTED]>


An
"Tapestry users" <[EMAIL PROTECTED]>
Kopie

Thema
Event bubbling in IE doesn't work






Hello,

I want to use event bubbling  to find out what checkbox is click with an
Ajax call.
To do this I attach the EventListener to a div surrounding the checkboxes.
This works in firefox, the id of the checkbox is returned. But in IE the 
id
of the surrounding div is returned.

Is there a way to get the id of the clicked checkbox?

Regards,
Diego

Reply via email to