1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    5
    Vote Rating
    0
    mrmiagi is on a distinguished road

      0  

    Default Unanswered: Error in ie with event handler Ext.select('div.contentElementGroup').on

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


    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

    Code:
    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();
    });

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,505
    Answers
    13
    Vote Rating
    52
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    I don't think you get a second argument. The target is got from the event. This is standard.

Thread Participants: 1