PDA

View Full Version : [CLOSED] Problems running my project in IE8



supera
Mar 15, 2012, 7:17 PM
Hi... I get two erros when I run my project in IE8, and my application dont started...

1 - Object does not support this property or method: ExtJS.js, line 87


highlightDates: function (dates, cls) {
var dateValues = [],
el = this.getEl();

cells = el.select("a.x-datepicker-date");
Ext.each(dates, function (d) {
dateValues.push(d.getTime());
});

cells.removeCls(cls);

cells.filter(function (el) {
return (dateValues.indexOf(el.dom.dateValue) > -1); //in this line the errors occurs
}).addCls(cls);
}


2 - App.txtIDAgendaSala' is null or not an object. 177, line 32



function getIDAgendaSala() {
var vRet = "1";
//Aqui vai o cdigo dos filtros...
if (App.txtIDAgendaSala.getValue() != null) { //in this line the errors occurs
if (App.txtIDAgendaSala.getValue() != "") {
vRet = App.txtIDAgendaSala.getValue();
}
}
return vRet;
}


There are any incompatibility between IE 8 and Ext.net or ExtJS?
I do not know where to start debugging these errors. In IE9, FireFox, Chrome, the application runs very well.
There are a checklist or guide to debug this cases?

Daniil
Mar 15, 2012, 9:22 PM
Hi... I get two erros when I run my project in IE8, and my application dont started...

1 - Object does not support this property or method: ExtJS.js, line 87


highlightDates: function (dates, cls) {
var dateValues = [],
el = this.getEl();

cells = el.select("a.x-datepicker-date");
Ext.each(dates, function (d) {
dateValues.push(d.getTime());
});

cells.removeCls(cls);

cells.filter(function (el) {
return (dateValues.indexOf(el.dom.dateValue) > -1); //in this line the errors occurs
}).addCls(cls);
}



Please apply these changes:
http://forums.ext.net/showthread.php?17110&p=76934&viewfull=1#post76934




2 - App.txtIDAgendaSala' is null or not an object. 177, line 32



function getIDAgendaSala() {
var vRet = "1";
//Aqui vai o cdigo dos filtros...
if (App.txtIDAgendaSala.getValue() != null) { //in this line the errors occurs
if (App.txtIDAgendaSala.getValue() != "") {
vRet = App.txtIDAgendaSala.getValue();
}
}
return vRet;
}



If the error is not gone after fixing the first problem (the first JS error might cause the second one), please start a new forum thread.



There are any incompatibility between IE 8 and Ext.net or ExtJS?


No, Ext.NET/ExtJS fully support IE8 (native, without any compatibility modes).



I do not know where to start debugging these errors. In IE9, FireFox, Chrome, the application runs very well.

Well, there is just no native indexOf method of Array object in IE8, but it is in IE9, FireFox and Chrome. It's about the first problem.



There are a checklist or guide to debug this cases?

Well, no special guidelines, just experience, debugging and searching on the internet. Or, certainly, the consultancy of more experienced developers in this part - it often saves my life :)

supera
Mar 16, 2012, 1:58 PM
Hi Daniil! The error is solved!

Thanks a Lot!