View Full Version : ExtJS an IE9 don't work

25 Nov 2011, 3:21 AM
I've created a Site with ExtJs. In Firefox 8 everything works. Firebug reports no error.
When I try to open the Site in IE9 NOTHING works!
I got only error messages (in ext-all.js)!

What can I do?

Thanks a lot

25 Nov 2011, 4:25 AM
The first message is:
(The object "events" is NULL or undefined)

Meldung: Für die Eigenschaft "events" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert
Zeile: 15
Zeichen: 364058
Code: 0
URI: http://localhost/resources/extjs/ext-all.js

29 Nov 2011, 12:39 PM
Try to check all your JavaScript code in http://www.jshint.com/, and solve all warnings. I am working currently on a very big ExtJS project, and even though it all worked ok in Firefox and Chrome, nothing worked on IE because there were some bad placed commas or other small mistakes that other browser ignored. And you have a debug console on IE too, even if it's crappier than Firebug and Chrome console, try to find your problem first and ask more specific questions. But I bet there are some misplaced commas.

1 Dec 2011, 12:45 PM
Without knowing more it will be dificult to diagnose, however I have seen similar NULL failures when and RPC call attempts to return a NULL object reference. If your site is accessing a JSON service at the time of the failure you might want to put yoru server side code in debug mode and make sure that you are not returning a null reference.

8 Dec 2011, 7:51 AM
Hi all,

I posted in this thread first :


It looks like the EC variable is not like Ext.cache ( ExtJS v4.0.7 / ext-all-debug.js / line 8017 )
If someone can find a real solution here that would be great, I'm working on professional applications and can't allow this kind of error. It make the application totally unusable.

8 Dec 2011, 11:15 AM
I found the solution:
I've to care for every comma in the code. While Firefox has no problem with it in IE9 nothing works.
And I've changed from ext-all-debug.js to ext-all.js. There are some errors in the debug version.

9 Dec 2011, 1:11 AM
Hi BrunoROT,

I tried with ext-all.js and nothing changes, the "events" is null error remains.

9 Dec 2011, 2:38 AM

For those who don't want to see this error '"events" is null or not an object', you can, at your own risk, modify the ext-all-debug.js (or the ext-all.js) file :

In ExtJS v4.0.7 between line 7651 and line 8142, replace all reference to variable 'EC' by 'Ext.cache'

This solved it for me as now it always references the same thing and doesn't loose the EC reference.

As soon as I get my Ext licence, I'll definitely use a ticket for this (unless solved:D).