PDA

View Full Version : Fomrpanel submit listener



muncher
16 Jul 2010, 2:32 PM
how do I write a listener getting the response of action completion of a form ? I have created a new action type, which in turn makes an ajax call. What is that suppose to return to that a handler like something below can get the data ?



searchForm = new Ext.form.FormPanel(....)
searchForm.on({
actioncomplete: function(form, action){
alert(action.type);
}

Animal
16 Jul 2010, 10:11 PM
FormPanel does not have those events.

FormPanel is the structural component which handles layout/rendering etc.

Submission/loading etc is delegated to a Ext.form.BasicForm instance: http://www.sencha.com/deploy/dev/docs/?class=Ext.form.BasicForm

But I'm confused. You must have seen that class to have seen that event. So you know about it, and yet used it on a FormPanel. Why?