View Full Version : FormPanel Submit Complete Event
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.
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.
Thank you, Michel! That's what I was looking for.
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.
Sorry, I posted in bad forum. My message concerned Sencha.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.