Top "Backbone.js" questions

Backbone.

How do I trigger the success callback on a model.save()?

this.model.save({ success: function(model, response){ console.log('success'); }, error: function(){ console.log('error'); } }) The model is correctly posted …

backbone.js
Ways to save Backbone.js model data?

I am more into front end development and have recently started exploring Backbone.js into my app. I want to …

javascript json backbone.js javascript-framework
Filter backbone collection by attribute value

I have a defined model and a collection: var Box = Backbone.Model.extend({ defaults: { x: 0, y: 0, w: 1, h: 1, color: "black" } }); …

backbone.js underscore.js backbone.js-collections
Backbone.View "el" confusion

How should a view's el be handled? It has to be set, otherwise events don't fire (see here). But should …

javascript backbone.js backbone-views
Finding JavaScript memory leaks with Chrome

I've created a very simple test case that creates a Backbone view, attaches a handler to an event, and instantiates …

javascript google-chrome backbone.js memory-leaks
Simplest of backbone.js examples

I'm creating a bare bones backbone example to try to learn it and am having issues getting my view to …

javascript backbone.js
Sorting a Backbone Collection After initialization

I am using Backbone.js to render a list of items e.g Books. After the list is rendered, there …

backbone.js
How to override Backbone.sync?

I'm trying out Backbone.js, and one of the things I'm trying is to make a call to a remote …

javascript backbone.js
Understand Backbone.js REST calls

I am trying to understand the Backbone.js sync method and was going through the documentation on http://backbonejs.org/#…

javascript jquery ajax rest backbone.js
How to handle initializing and rendering subviews in Backbone.js?

I have three different ways to initialize and render a view and its subviews, and each one of them has …

javascript backbone.js