javascript - model.save setting the url and making a call back on success -


i'm trying method work:

that.model.save(null,  // i'm calling that.model because nested in method {    url: 'some url',      success: function(model, response) {         // update stuff     },      error: function(model, response) {         // throw error.      } });  

but reason not call success method or error method. comments i'm calling methods... don't want specifics of methods i'm calling. save method works, not call eater of methods.

also if try , call method alrady made like:

success: that.somemethod() 

javascript throws: uncaught typeerror: illegal invocation

any appreciated.

the method looks fine uses same arguments backbone describes:

model.save([attributes], [options]) 

the scenario success/error handlers being overridden somewhere prototype chain , not calling handlers.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -