TabPanel and 'Ext.fly(...)' is null or not an object error
Hello all,
I've spend a lot of time trying to understand why the 'Ext.fly(...)' is null or not an object error was happening in TabPanel (when changing tab in IE6 and IE7).
The solution I've found is quite simple, you just have to override the getTarget method, hope this can help someone.
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;
}
});
Samuel
Where to place above code
Hello,
I am getting the same problem on IE7, I have added above code snippet into my application's JS but not able to get rid of the error. Is there any other way to add this snippet?
TabPanel and Ext fly is null or not an object error
I am rendering a grid in my project.On firefox, this code works fine.However in IE 7 I get the following error:undefined is null or not an objectI believe the error is occuring on Line 239 in ext-all.js and the following section is highlighted:iftypeof _1i.dataIndex=="undefined"I feel as if Im not providing enough information for you guys to help me with my problem, let me know what else I should provide