1. #1
    Ext User fabrizim's Avatar
    Join Date
    Mar 2007
    Location
    Lowell, MA
    Posts
    47
    Vote Rating
    0
    fabrizim is on a distinguished road

      0  

    Post GridView 'findHeaderIndex' IE7 bug

    GridView 'findHeaderIndex' IE7 bug


    I added a toolbar to the header panel of a gridview, and after a button is clicked, I was receiving Ext.fly(...) is not an object errors within IE. I tracked it down and found where the problem was.

    The GridView class should be changed from (GridView.js Line 401 in 1.0 release):
    Code:
        findHeaderIndex : function(n){
            var r = Ext.fly(n).findParent("td." + this.hdClass, 6);
            return r ? this.getCellIndex(r) : false;
        },
    
        findHeaderCell : function(n){
            var r = Ext.fly(n).findParent("td." + this.hdClass, 6);
            return r ? r : false;
        },
    to:
    Code:
        findHeaderIndex : function(n){
            if(!n){
                 return false;
            }
            var r = Ext.fly(n).findParent("td." + this.hdClass, 6);
            return r ? this.getCellIndex(r) : false;
        },
    
        findHeaderCell : function(n){
            if(!n){
                 return false;
            }
            var r = Ext.fly(n).findParent("td." + this.hdClass, 6);
            return r ? r : false;
        },
    It looks like this check is already in place for findRowIndex, and possibly others. I think the problem is from an event returning a bad target in IE.

    Regards-
    Mark

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    89
    Vote Rating
    3
    amackay11 is on a distinguished road

      0  

    Default


    Bump... this still seems to be a problem in 1.1 B1, using ext-base.js

    http://extjs.com/forum/showthread.php?p=38777
    Andy

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,798
    Vote Rating
    603
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Hey guys,

    Bumping this one up, I'm having a similar issue and the proposed code above seems to work. Can you have a(nother?) look into this?

  4. #4
    Ext User
    Join Date
    May 2009
    Posts
    66
    Vote Rating
    0
    navdimri is on a distinguished road

      0  

    Question Ext.fly(...) is null or not an object

    Ext.fly(...) is null or not an object


    Hi All,

    I am also getting the same javascript error with IE: Ext.fly(...) is null or not an object.
    I am using below files in my application:

    EditableItem.js
    RangeMenu.js
    GridFilters.js
    Filters.js
    StringFilter.js
    DateFilter.js
    ListFilter.js
    NumericFilter.js
    columnLock.js
    BooleanFilter.js

    Also, I have tried both fixes inside my javascript file, but it didn't work.
    1.

    Code:
    Ext.override(Ext.EventObjectImpl, {
        getTarget : function(selector, maxDepth, returnEl){
            var targetElement;
            try {
                targetElement = selector ? Ext.fly(this.target).findParent(selector, maxDepth, returnEl) : this.target;
            } catch(e) {
                targetElement = this.target;
            }
            return targetElement;
        }
    });
    and 2.

    Code:
    Ext.override(Ext.grid.GridView, {
     findHeaderIndex : function(n){
     if(!n){
     return false;
    }
    var r = Ext.fly(n).findParent("td." + this.hdClass, 6);
     return r ? this.getCellIndex(r) : false;
    },
     findHeaderCell : function(n){
     if(!n){
     return false;
    }
    var r = Ext.fly(n).findParent("td." + this.hdClass, 6);
     return r ? r : false;
     }
    }
    );
    Someone, please suggest me other solution.

    Thanks,
    navdimri

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi