PDA

View Full Version : Extjs 4



mandardadpe
8 Aug 2012, 6:16 AM
Using Extjs 4.1....I have two .js files and I want use tree store of one file into another file. Like this,
miscSub.subtradeStore.setProxy({
type : 'ajax',
url : 'PostSubTrade.do',
method : 'POST',
extraParams : {
action : 'subTradeTree',
SubbieId : '0'
}
});
miscSub.subtradeStore.load();


It is giving error to last line..."subtradeStore" is defined in another file and I want to use it in different file. Error Msg:'dom of null'

scottmartin
8 Aug 2012, 8:05 AM
Are you including both files in your html? The location should not matter.

Scott.