Using Backbone.JS, I am able to successfully create new models and save them to the server. They successfully make an ajax call and the subscribed UI elements update appropriately. The problem I then run into is that I don't know the ID of the newly created object.

I can see in the response headers for my create calls, that the sever is returning a location header like: Location https://localhost/rest/beta/mobile/footer/OTo3Njow with the last parameter being the newly created ID.

How can I get this ID without overriding backbone.sync? If I have to override backbone.sync, what is the cleanest method?

UPDATE It looks like my organization is using an older Backbone.js in which the parse method of models does not provide a reference to the XHR object, otherwise I could catch the ID and do the assigning there.

Edit
Report