PDA

View Full Version : How to process a basc ExtJS form through AJAX



manjunath
18 Feb 2008, 8:50 PM
Can u give an example of how to post a Basic ExtJS form using AJAX.

cerad
19 Feb 2008, 6:29 AM
// Form Panel config object
buttons: [
{
text: 'Save',
type: 'submit',
scope: this,
handler: function() {
this.form.submit({
method: 'POST',
url: app.buildUrl('service/person/update'),
success: function(f, a) {
f.setValues(a.result.data);
},
failure: function(f, a) {
f.markInvalid(a.result.errors);
}
})
}
},{
text: 'Cancel'
}]