In Backbone, you can pass {wait: true} to all the save() calls (http://documentcloud.github.com/backbone/#Model-save) to wait for a response from the server, otherwise all calls are assumed to be "positive by default" -- saving the data is assumed to be successful by default.
-- Cheers,
Karl Sutt
On Wed, May 2, 2012 at 11:01 PM, Sherif Shehab Aldin <silentquote@gmail.com> wrote:
I think my main problem is thinking about the returning objects, I want to make a standard way for ajax calls on my application so I can easily extend them, and create new ones easily, rather than thinking about it every time.
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment