1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Answers
    2
    Vote Rating
    0
    bee is on a distinguished road

      0  

    Default Unanswered: formsubit does not work

    Unanswered: formsubit does not work


    Hi, I am trying same functionality for submit as below, but does not work the alert message never appear even if it is success or failure. I am using extjs 4.0.7

    myFormPanel.getForm().submit({ clientValidation:true, url:'updateConsignment.php',params:{ newStatus:'delivered'}, success:function(form, action){Ext.Msg.alert('Success', action.result.msg);}, failure:function(form, action){switch(action.failureType){caseExt.form.Action.CLIENT_INVALID:Ext.Msg.alert('Failure','Form fields may not be submitted with invalid values');break;caseExt.form.Action.CONNECT_FAILURE:Ext.Msg.alert('Failure','Ajax communication failed');break;caseExt.form.Action.SERVER_INVALID:Ext.Msg.alert('Failure', action.result.msg);}}});

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Answers
    2
    Vote Rating
    0
    bee is on a distinguished road

      0  

    Default


    Code:
    myFormPanel.getForm().submit({
        clientValidation: true,
        url: 'updateConsignment.php',
        params: {
            newStatus: 'delivered'
        },
        success: function (form, action) {
            Ext.Msg.alert('Success', action.result.msg);
        },
        failure: function (form, action) {
            switch (action.failureType) {
                caseExt.form.Action.CLIENT_INVALID: Ext.Msg.alert('Failure', 'Form fields may not be submitted with invalid values');
                break;
                caseExt.form.Action.CONNECT_FAILURE: Ext.Msg.alert('Failure', 'Ajax communication failed');
                break;
                caseExt.form.Action.SERVER_INVALID: Ext.Msg.alert('Failure', action.result.msg);
            }
        }
    });

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi