I am posting some data to server through Backbone.js and server sends a csv file as response. As Backbone.js handles only json format can some body tell me how to handle this case, so that i would be able to download the csv file gracefully.
  object = {};
  object.c1 = formObj.c1
  hash = {
    success: function(model, response, options) {
    },
    error: function(model, response, options) {
      return console.log(response);
    }
  };
  model = new P.models.mine(object);
  model.doSomething(object, hash);
It always comes to error part.
 
     
     
    