PDA

View Full Version : Problem with browse button in ExtJs form



srautpyaa
9 Jan 2013, 10:32 PM
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.
41200
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,

mitchellsimoens
11 Jan 2013, 12:29 PM
You're submitting to an HTML document?

srautpyaa
16 Jan 2013, 9:24 PM
Yes i am using HTML document.