Results 1 to 2 of 2

Thread: Problem with response after submitting the Form

  1. #1

    Default Problem with response after submitting the Form

    Hi,

    I'm having this problem (from Firebug):

    Code:
    {"success":"false","error":"test error","error1":""}</pre>)
    ext-all-debug.js (Linie 7175)
    after I submit the form with the fileUpload

    Code:
    form = new Ext.form.FormPanel({
    frame :false,
     fileUpload:true
    });
    Code:
    ...
    form.getForm().submit({
                                        url: "upload.php",
                                        method: 'POST',
                                        waitMsg: 'Please Wait...',
                                        success: function(form, action) { 
                                              Ext.Msg.alert(action.result);
                                        }
                                    });
    My JSON response is (this is what server sends) :
    Code:
    {"success":"false","error":"test error","error1":""}
    everything seems to be alright, but I have no idea why this problem occurs.First of all I do not send XML-Data but JSON-String. So could anyone help me with this ? Of course Ext.Msg.alert doesn't show up beccause of the error.

  2. #2

    Default

    you have to setup correctly the errorReader and reader see the doc.

Posting Permissions

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