PDA

View Full Version : Problem with the ItemSelector in some(!) IE8



Merenon
29 Nov 2011, 2:03 AM
Hi!

I've created an ExtJS Desktop Application which works well in nearly all of the tested Browsers.
Only some IE8 seem to have a problem with an itemselector inside a window I definitely need to use. Oddly, I can't reproduce the error in any of my available IE8 browser, even if all of them have the identical version number.

The code where the problem occurs seems to be the following:


var itemSelector = new Ext.ux.ItemSelector({
xtype: 'itemselector',
name: 'investmentSelectorIEtest',
id:'assign-investment-itemselector-ietest',
fromStore: fromStore,
toStore: toStore,
dataFields: ["id", "name"],
valueField: 'id',
displayField: 'name',
imagePath: '/js/thirdParty/multiselect',
toLegend: 'Selected Investments',
fromLegend: 'Available Investments',
drawUpIcon: false,
drawDownIcon: false,
drawTopIcon: false,
drawBotIcon: false
});


The code is already minimised and the stores are local/static to test it. Without the itemselector everything is working fine and the window opens. But with the itemselector it says: "Object expected" in the clients IE8.

Can someone help me? Any ideas?

mitchellsimoens
29 Nov 2011, 2:32 PM
Start commenting out configs until you find which config is the offending config.

Merenon
30 Nov 2011, 4:02 AM
Well, that's exactly what we did. This is already the minimised code. The problem must be somewhere in this small peace of code, because when leaving it out, the window opens without any complaints.

Merenon
5 Dec 2011, 6:25 AM
SOLVED!

The xtype is/was too much.
Creating an itemselector with new Ext.ux.ItemSelector AND having an xtype crash in some!! IE8 versions!

Silly mistake :/