1

I have a GeoExt form and want to do file upload here. But i never work with GeoEXT. I have this.

buttons: [{
  text: 'Загрузить',
  handler: function(){
  if(fp.getForm().isValid() && Ext.getCmp('opinions').getValue()=="blabla"){
    form_action=1;
    fp.getForm().submit({
             url: '<portlet: actionURL>',
             waitMsg: 'WAITING...',
     success: function(fp, o) {
              DO SOMETHING
              }
             }
            }
          }]

This is correct?
What arguments use in success: function(fp, o)? First argument is FormPanel but i dont understand what is second. Another question how to do asynchronous file upload in this case?

Lorenz Meyer
  • 19,166
  • 22
  • 75
  • 121
Kliver Max
  • 5,107
  • 22
  • 95
  • 148

0 Answers0