Hybrid View
-
4 Dec 2007 6:28 PM #1
TabPanel and 'Ext.fly(...)' is null or not an object error
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.
SamuelCode: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; } });
-
4 Dec 2007 6:47 PM #2
hmmm? what's the test code you used on IE6?
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
30 Sep 2008 3:12 AM #3
-
9 Dec 2008 6:35 AM #4
Where to place above code
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?
-
8 Mar 2009 6:21 PM #5
This solution also worked for me using IE6 and Ext 2.2.0
Thanks
-
3 Jun 2009 5:10 AM #6
I have the same problem... but, a silly question... where put this lines??... in which file? please I am a newbie... thanks in advance!!
-
18 Jun 2009 5:01 AM #7
I have also just implmented the same fix although i am not too happy about it. I dont know why this is happening.
-
26 Jun 2009 12:51 AM #8
I have had the same problem,.
The above fix just prevents the error from being thrown.
I have extjs in an iframe and when the user right clicks a menu with some menu items appears. Before I inserted a fix an error was thrown when an item was selected.
After the fix no error is thrown but choosing the menu item has no effect whatsoever.
I am suspecting it is because this.target for some reason appears to be null in IE..
-
3 Sep 2009 8:07 AM #9
TabPanel and Ext fly is null or not an object error
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
-
22 Jan 2010 2:50 AM #10
Thanks
Thanks
f*cking IE...
Well this override is a hacky workaround, but it does work.
Thank you.


Reply With Quote