PDA

View Full Version : "undefined" issues after migrating from ext 2.x to 3.1.1



elbino
23 Sep 2010, 1:27 AM
Hallo there,

we just migrated from an extJS version 2 up to 3.1.1. Unfortunatelly this does not work very well. After switching to debug ext-all and ext-base Firebug is coming up with "sp is undefined". I figured out that this may be the result of extending a non existing class.

Well, then I analyzed some of the used js-files. There is a DateFilter.js that seems outdated. I added some "ux" to Ext.grid.filter and so on... But there are other parts of code:


Ext.ux.grid.filter.DateTimeFilter = Ext.extend(Ext.ux.grid.filter.DateFilter, {...}

Ext.extend(Ext.ux.menu.DateTimeItem, Ext.menu.Adapter, {...}

Ext.ux.form.CustomTimeField = Ext.extend(Ext.form.TimeField, {...}...

I cannot find "DateTimeFilter", "DateTimeItem" and "CustomTimeField" in the API. May this be the reason for "sp is undefined"?

Thanks & greetings,
Thomas

Edit: These are old extensions, aren't they? Does anyone know where to geht new ones?

elbino
23 Sep 2010, 1:51 AM
Okay, think, I found them. :-)

elbino
23 Sep 2010, 4:03 AM
Uh, I got another problem. Firebug is telling me: "Cls is not a constructor"

c = new Cls(c);
In ext-all.js in debug-mode. Any idea what may be wrong? :-(

greetings,
Thomas