PDA

View Full Version : FormPanel Submit Complete Event



turan
1 Aug 2010, 12:55 AM
Is there some solution to handle submit complete event for FormPanel? I am looking for something like "addSubmitHandler", "addSubmitCompleteHandler" in GWT. For example I want to display "Uploading..." MessageBox while uploading a file, and close it after successful upload.

micgala
2 Aug 2010, 1:03 AM
Welcome to the forum.
You can use the Submit event for this.
It is called after the submit has been completed.

Regards,
Michel.

turan
2 Aug 2010, 3:42 AM
Thank you, Michel! That's what I was looking for.

Mis63
2 Aug 2010, 7:35 AM
It seems that there is a bug in FormPanel.submit : the success handler is never called. The problem is because the options parameter received by callback function on Ext.Ajax.request isn't the same as the options parameters passed to FormPanel.submit. So in the callback function of Ajax.request, the value options.success is always undefined.

Mis63
2 Aug 2010, 7:36 AM
Sorry, I posted in bad forum. My message concerned Sencha.