PDA

View Full Version : No idea how to use Ext.ajax after reading the document



todayboy
4 Sep 2016, 7:50 PM
I am new to Ext JS, do anyone have any complete examples of Ext.ajax? it seems like it is for download form?
Ext.Ajax (http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.Ajax).request (http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.data.Connection-method-request)({
url: 'foo.php',
success: someFn,
failure: otherFn,
headers: {
'my-header': 'foo'
},
params: { foo: 'bar' }
});