Results 1 to 3 of 3

Thread: the counterpart in v4.* for Ext.util.JSON.decode(result.responseText) in v2.2

  1. #1
    Sencha User
    Join Date
    Oct 2007
    Location
    DC metro
    Posts
    447

    Question Answered: the counterpart in v4.* for Ext.util.JSON.decode(result.responseText) in v2.2

    hello,

    trying to migrate to v4.1 and I have the ajax call in v2.2 like
    Ext.Ajax.request ({
    url: tURL,
    params: {},
    method: 'GET',
    success: function (result, request) {
    jsonData = Ext.util.JSON.decode(result.responseText);
    var NoRec = parseInt(jsonData.snpRows.length, 10);
    },
    failure: function ( result, request) {
    Ext.Msg.show({
    title: 'Retrieve Analysis Track Error',
    msg: ['Ajax call failed at retrieving the analysis <br><b>request status:&nbsp;&nbsp;',result.status, '<br>request error:&nbsp;&nbsp;',result.statusText,'<br><br>Details:<br>',result.responseText].join(''),
    minWidth: 420,
    buttonText : 'close',
    icon: Ext.MessageBox.QUESTION
    });
    return ;
    },
    callback: function( result, request ){
    var testing = jsonData;
    populateGrid(testing);
    }

    });

    but Ext.util.JSON.decode() is no longer working at v4.1, what's the counterpart in Ext JS 4.* for Ext.util.JSON.decode(result.responseText) in v2.2 ?

    thanks

    mxu

  2. Ext.JSON.decode or Ext.decode in Ext JS 4

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Ext.JSON.decode or Ext.decode in Ext JS 4
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  4. #3
    Sencha User
    Join Date
    Oct 2007
    Location
    DC metro
    Posts
    447

    Red face

    thanks

    mxu

Posting Permissions

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