PDA

View Full Version : Ext.Ajax.request/ScripTagProxy Example



davisty
25 Aug 2011, 7:29 AM
Hello,

Does anyone have an example of Ext.Ajax.request/ScripTagProxy usage.

Thank You

shuixiya1999
25 Aug 2011, 10:55 PM
// Basic requestExt.Ajax.request (http://127.0.0.1/extjs/docs/output/Ext.data.Connection.html#Ext.data.Connection-request)({ url: 'foo.php', success: someFn, failure: otherFn, headers: { 'my-header': 'foo' }, params: { foo: 'bar' }});// Simple ajax form submissionExt.Ajax.request (http://127.0.0.1/extjs/docs/output/Ext.data.Connection.html#Ext.data.Connection-request)({ form: 'some-form', params: 'foo=bar'});