PDA

View Full Version : Load store within init throw an exception 0x805e0006



octonet
14 Dec 2011, 5:34 AM
Hi, i m new creating widget for EXTJS and i was wondering what i was doing wrong :
When i load my store i get :
Component returned failure code: 0x805e0006 [nsIXMLHttpRequest.open].

Thanks for your help.


ComboBoxView = Ext.extend(Ext.form.ComboBox, {
fieldLabel: 'View',
anchor: '100%',
autoShow: true,
lazyInit: true,
lazyRender: true,
labelSeparator: ' : ',
triggerAction: 'all',
mode: 'local',
submitValue: true,
id_grid: '',
forceSelection : true,
initComponent: function() {
ComboBoxView.superclass.initComponent.call(this);
this.store = new Ext.data.JsonStore({
id: 'storeView',
root: 'data',

url: "view.php",

fields:
[
{name: 'id', type: 'int'},
{name: 'lib', type: 'string'}
]
});
this.store.load();

}
});

mitchellsimoens
14 Dec 2011, 1:22 PM
You should specify this.store before you call the superclass