POST Response: How to Retrieve and Parse JSON in .done and .fail?

Comments

2 comments

  • Avatar
    Thomas Balsløv

    Hi Jeff.

    I do it like this:

    'fetchdata.done': function(data){
           services.notify('The request succeeded');
           this.render(data);
    }

    The response data (JSON object) is automagically added as a function parameter.

    Best regards,
    Thomas Balsløv.

  • Avatar
    Jeff Tanner

    Thx for you reply

Please sign in to leave a comment.

Powered by Zendesk