View Full Version : namespace issue - works in IE but not in Firefox

24 Apr 2011, 1:20 PM
Happy Easter all,

I have a namespace issue where a component works in IE8 but not in Firefox 4.

For use with multiple components I setup a store in its own namespace. The first component (and only one so far) that uses the store is a combobox in an editor grid. This example works perfectly IE8 but in Firefox 4 I get the error, 'NAPP.store is undefined'.

I must be overlooking something very basic. Any extra eyes would be very helpful.

The store's .js file (included before the grid's .js file):



NAPP.stores.BUStore = new Ext.data.DirectStore({
directFn: Direct.Grid.LoadDrop,
paramOrder: ['dropNum'],
autoLoad: true,
root: 'data',
baseParams: {dropNum:1},
idProperty: 0,
autoDestroy: true,
fields: [
type: 'string',
name: 'nm'
}, {
type: 'int',
name: 'lyid'

The combobox used in the editor grid: (editor grid namespace: NAPP.gridpanel)

var BUCombox = new Ext.form.ComboBox({
lazyRender: true,
triggerAction: 'all',
displayField: 'nm',
valueField: 'lyid',
typeAhead: 'true',
forceSelection: true,
mode: 'local',
store: NAPP.stores.BUStore
});Thanks for your time and I hope you all are spending more time with family than with coding this holiday!

25 Apr 2011, 7:59 AM
Thread closed; found a solution.