1

I save a backbone model, the save is successful. However the success or the error function dont seem to be getting called. Here is what I have tried :

that.model.save(null,{
    success:function(model, response){
        console.log("save successful");
    },
    error: function(model, response){
       console.log("save error");
    }
});
  • Are you making a cross-domain request? What's the URL of the page this is loaded into and what's the `url` value in `that.model`? – Lior Cohen Nov 08 '13 at 15:22
  • Also, have you tried replacing `null` with `{}` in the first line? – Lior Cohen Nov 08 '13 at 15:23
  • Ok the url: model/pullInfo.ashx/list and when I replaced null with {} the save is unsuccessful and neither call back is called. –  Nov 08 '13 at 15:30
  • I need the **full** URLs for `that.model` and `window.location.href`, please. – Lior Cohen Nov 08 '13 at 15:33
  • Yes the save absolutely works on the server...the response was a 200 –  Nov 08 '13 at 21:47

0 Answers0