PDA

View Full Version : Error in ie with event handler Ext.select('div.contentElementGroup').on



mrmiagi
17 Nov 2009, 3:52 AM
Hi, i have a problem with the internet explorer and the following script:

I get the error "Objekt expected" in line 925 of ext-core. In Firefox it works fine.
I have debuged it and saw that "Ext.select('div.contentElementGroup').on('mouseenter'"
seems to be the problem. Any idea



var typo3pageModule = {
init: function(){
typo3pageModule.registerEventHandlers();
},
registerEventHandlers: function(){
Ext.select('div.contentElementGroup').on('mouseenter',function(e,t){
var parent = Ext.get(t).findParent('div.contentElementGroup',null,true);
parent.child('div.ttContentHeader').show();
parent.addClass('active');
}).on('mouseleave',function(e,t){
var parent = Ext.get(t).findParent('div.contentElementGroup',null,true);
parent.child('div.ttContentHeader').hide();
parent.removeClass('active');

});
}
}
Ext.onReady(function() {
typo3pageModule.init();
});

Animal
18 Nov 2009, 2:59 AM
I don't think you get a second argument. The target is got from the event. This is standard.