extjs - Unable to get callback response in form submit -


i'm going crazy. i've read forum, questions, answers, no way callback response!! code:

var myformtest = new ext.form.formpanel({ renderto: 'divallegati', width: 500, title: 'allegati', bodypadding: '10 10 0', standardsubmit: true, items: [{     xtype: 'textfield',     fieldlabel: 'name', name: 'ciao', value: 'ciao' },{     xtype: 'filefield',     id: 'form-file',     emptytext: 'seleziona un file',     fieldlabel: 'allegato',     name: 'photo-path',     buttontext: '',     buttonconfig: {         iconcls: 'upload-icon'     } }], buttons: [{     text: 'save', handler: function(){     if (myformtest.getform().isvalid()) {         myformtest.getform().submit({         url: '/uploadallegati',         waitmsg: 'caricamento allegati...',         success: function (form, action) {             ext.msg.alert('success');         },         failure: function (form, action) {             ext.msg.alert('failure');         }                                                });     }     } }] 

});

no way success or failure!! server send this:

responseinfo.responseno := 200; responseinfo.contenttype := 'text/html'; responseinfo.contenttext := '{success:true}'; 

but have response, blank page with

{success:true}

no message, no alert, no callback....

please help, going crazy!

standardsubmit: false,//true, <--------- 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -