1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    14
    Vote Rating
    0
    please is on a distinguished road

      0  

    Default Unanswered: alert response of restapi of the post

    Unanswered: alert response of restapi of the post


    hi all,
    i posted few records to restapi so i got response of json data again like {errorrcode:'internal error'} , so i have to show this response as a alert if the response is error show as alert error success show as success

    so i have parameter s to read the form record and operation how to do with this

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,011
    Answers
    668
    Vote Rating
    460
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Please read the following:
    http://www.sencha.com/forum/showthread.php?238414

    Scott.

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    14
    Vote Rating
    0
    please is on a distinguished road

      0  

    Default


    thanks for the response, still its not working my json response data from post method {"error":"error while connecting"}

    success: function (response) {

    var jsonResp = Ext.JSON.decode(response.responseText);

    Ext.Msg.alert("Info","UserName from Server : "+jsonResp);
    },
    failure: function (response) {
    //var jsonResp = Ext.JSON.decode(response.responseText);
    Ext.Msg.alert("Error"+jsonResp);
    }

    response.responseText is undefined giving output please help me out

Thread Participants: 1