Results 1 to 3 of 3

Thread: Problem with browse button in ExtJs form

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    19

    Default Problem with browse button in ExtJs form

    Hi friends,

    Now i am using extjs 4.1 and I have developed one extjs form which contains normal fields & one file field(Browse). After giving all field value if i have clicked on submit button, it has redirected to Spring controller then performed related operations. After that i got below window(see image) on extjs form instead of Success/Failure alert message.
    Screenshot.png
    Suppose if the ExtJs form doesn't contain file field(browse), it is showing success/failure message on form.

    I have put the below code at submission form.

    buttons: [{
    text: 'Cancel',
    handler: function() {
    this.up('form').getForm().reset();
    }
    }, {
    formBind:true,
    text: 'Submit',
    handler: function(){
    form1.getForm().submit({
    url:'CRM_ImportTaskStore.htm',
    monitorValid:true,
    success:function(){
    Ext.Msg.alert('Status', 'Task Details are Imported Successfully');
    },
    failure:function(){
    Ext.MessageBox.alert ('Task Details are Not Imported');
    }
    });
    }
    }]






    Please help me,

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    You're submitting to an HTML document?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    19

    Default

    Yes i am using HTML document.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •