You were on the right track here, but your parentheses slipped off the  
tracks. What's happening is you are double-extending the  
Event.element(event) -- it's already extended -- but then using a  
vanilla DOM accessor to get the parentNode, and in IE, that's not  
being extended.

You could try moving the parenthesis to the end, like this:

var elt = $(Event.element(event).parentNode);

...but I suspect you could just do:

var elt = Event.element(event).up();

...to grab the parent of this element, whatever it might be. The  
result of up() will already be extended, even in IE.

Walter


On Jan 4, 2009, at 9:07 PM, newhanoian wrote:

>       var elt = $(Event.element(event)).parentNode;


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to