PDA

View Full Version : EXTJS won't work on MSIE



codingJoe
19 Jan 2011, 8:12 PM
The code works fine on Firefox. Then I run it in MSIE and it breaks.

Message: 'Ext.fly(...)' is null or not an object
Line: 10717
Char: 17
Code: 0
URI: http://127.0.0.1:8000/site_media/js/ext-3.3.0/ext-all-debug.js
I added the following block of code based on the forum post. I wasn't sure where to put it. But I stuck the code before Ext.onReady(
http://www.sencha.com/forum/archive/index.php/t-6785.html


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;
}
});
It didn't fix the problem. I just realized that the above solution was posted in 2007. Surely, that fix has been implemented by now. Perhaps a new solution is needed?

Does anyone know how to fix this?

20 Jan 2011, 6:55 AM
Please change your title. It's not that "Ext JS won't work in MSIE". You are injecting an override for Ext JS 1.0 and is unsupported.

codingJoe
20 Jan 2011, 8:02 PM
Sorry if my original post wasn't clear. EXTJS is in fact NOT working on MSIE.

I only mentioned the Ext.override as something I tried to fix the real problem which is: "Ext.fly(...) is null or not an object." Ext.fly is the error I get when I run my EXTJS stuff in MSIE. I don't care about the Ext.override. In fact, I'd rather not use it. The EXTJS code works great in Firefox, but MSIE.

I don't have a tool like Firebug for MSIE that will get me to the root of the problem. Recommendations?

mdavis6890
20 Jan 2011, 8:56 PM
Suggestion: post a small but complete block of code we can run in IE to observe the problem.

21 Jan 2011, 5:37 AM
Sorry if my original post wasn't clear. EXTJS is in fact NOT working on MSIE.

I only mentioned the Ext.override as something I tried to fix the real problem which is: "Ext.fly(...) is null or not an object." Ext.fly is the error I get when I run my EXTJS stuff in MSIE. I don't care about the Ext.override. In fact, I'd rather not use it. The EXTJS code works great in Firefox, but MSIE.

I don't have a tool like Firebug for MSIE that will get me to the root of the problem. Recommendations?

How about posting something that demonstrates the problem?

valititi
21 Jan 2011, 9:43 PM
"I don't have a tool like Firebug for MSIE that will get me to the root of the problem. Recommendations?"

try firebug lite... is not very strong, but is better than nothing... :-)

tryanDLS
24 Jan 2011, 7:51 AM
http://sencha.com/learn/Ext_Forum_Help

cavalleydude
24 Jan 2011, 2:40 PM
Hi codingJoe,

One thing that I found that always causes IE to fail is the "extra comma" issue... IE crashes whenever an extra comma is encountered in JavaScript. Misplaced or extra comma's are killer to IE (even though Firefox and others don't complain).

See this article which helped me out when I first started using ExtJS:
http://nnbs.blogspot.com/2009/09/enough-about-minifying-javascript-what.html

I run this JSLint periodically (especially before release builds) to make sure I don't have any issues. Mainly, look at the JSLint output for "Extra comma" or "Misplaced comma" errors.

Good luck,
cavalleydude