D
D
DevOFF2017-01-16 14:06:30
backbone.js
DevOFF, 2017-01-16 14:06:30

Backbone request to server?

Good day to all. There is a form. telephone number. I track the change through the change input.
Now we need to send the data to the server. I am confused to send via Save() . everything is ok the request flies. I think the answer can also be received through the jqXHR object.
The question is, am I doing it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2017-01-16
@DevOFF

It is not worth taking through special objects. Backbone does everything itself.
An important point, is saving a new entity to the server ( POST )
or changing an existing ( PUT ) request?
Backbone expects this by default.
backbonejs.org/#Model-isNew
stackoverflow.com/questions/7836574/how-to-get-ag...
stackoverflow.com/questions/18504235/understand-ba...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question