Questions tagged [backbone-events]

This is for backbone.js questions that specifically relate to Backbone's event handling system.

Docs

787 questions
5
votes
1 answer

Highlight selected item with backbone router callbacks

The Application Layout I have an application, with a sidebar that holds many items and a main div which displays these items. There is also a simple Backbone.Router, a ItemsCollection and a Item model. I've got a SidebarView for the sidebar and a…
iblue
  • 29,609
  • 19
  • 89
  • 128
5
votes
2 answers

Getting backbone.js to run a function after constructing a Collection?

I may be completely missing something here, but I have the following: a Model which encapsulates 'all' the data (all JSON loaded from one URL) the model has one (or more) Collections which it is instantiating with the data it got on…
Joe
  • 46,419
  • 33
  • 155
  • 245
5
votes
1 answer

Triggering an event on el in Backbone View

I have a view that creates and populates a Selectlist. I want to bind an event on the Change event (When the user selects a different Option. It simply outputs something close to this: