Ext onReady function var api url rpc type remoting actions Document na

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Ext.onReady(function(){
var api = {
'url' : './../rpc/',
'type': 'remoting',
'actions' : {
'Document' : [{
'name' : 'all',
'len' : 0
},
]
}
};
var provider = Ext.Direct.addProvider(api);
Document.all(function(provider, response) {
Ext.Msg.alert('Response', response.toSource());
});
});