Component return code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] "nsresult:" 0x80070057 (NS_ERROR_ILLEGAL_VALUE)

I spent 2 days trying to understand this error and would like to share a resolution

Problem: I am trying to reconfigure extjs lattice panel at runtime with a different data store

Error code:

var el = Ext.getCmp('DummyGrid');
  el.reconfigure(SLADataStore, SLAColumnModel);
  el.load();

Error: Unused exception: [Exception ... "Component returned error code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JSc.net :: ext /ext-3.2.1/adapter/ext/ext-base.js

code without error:

var el = Ext.getCmp('DummyGrid');
el.reconfigure(SLADataStore, SLAColumnModel);
SLADataStore.load({
     params: {  start: 0,
                limit: 25, 
                sort: 'LevelID',
                dir: 'ASC'}
                 });

Cause of error: when I try to load, there should be datastore.load () not component.load ()

, 2 , ;)

-SAT

+5
1

Try

el.getStore().load();
0

All Articles