This is for backbone.js questions that specifically relate to Backbone's event handling system.
Questions tagged [backbone-events]
787 questions
0
votes
1 answer
backbone view listens to model event
I'm having problem with backbone view-model communication, view should be listening events from model, so function couponReader is supposed to get the data from model and add to the cart after a sort of confirmation. Any help is…

nihulus
- 1,475
- 4
- 24
- 46
0
votes
1 answer
Click event not firing
I've looked around for a while now and have not been able to find anything that suggests what the cause of this is.
My code:
var faqView = Backbone.View.extend({
tagName: 'div',
id: 'faq-list',
initialize: function() {
var view…

Nalum
- 4,143
- 5
- 38
- 55
0
votes
1 answer
Backbone.js: Model events are not fired while used within a Collection
Here I have a Backbone.js Model - Contact and a Collection - Contacts with Contact as the Model. I've two views where in one I use collection to list all the contacts and in the second the model directly to show a single contact. But when I'm using…

Saneef
- 8,620
- 7
- 29
- 42
0
votes
1 answer
How to update a model's order attribute when a list is being sorted in Backbone?
I have a sortable list (I didn't use jqueryui sortable, I wrote a small one all by myself) in Backbone.js app. For every list item, it's Backbone model has an order attribute which keeps its order in the list. Every time I sort this list, I want to…

chaonextdoor
- 5,019
- 15
- 44
- 61
0
votes
1 answer
Why is the click event triggered several times in my Backbone app?
I'm making a Backbone.js app and it includes an index view and several subviews based on id. All of the views have been bound with mousedown and mouseup events. But every time I go from a subview to the index view and then go to any of subviews…

chaonextdoor
- 5,019
- 15
- 44
- 61
0
votes
2 answers
Backbone view event does not seem to execute a function when arguments are defined
I have the following code for one of my backbone views:
class GD.Views.Result extends Backbone.View
template: JST['mobile/templates/result']
tagName: 'tr'
className: 'result'
events:
'click' : 'showDetail'
'click #favourite' :…

socratic_singh
- 183
- 1
- 13
0
votes
1 answer
Trigger Backbone Event from another js function
Looked around SO but couldn't find anything useful, so..
I have a Backbone.js contacts model with a contact card view. This view has many inputs where you can edit the contacts information.
I have many other forms on the page that are NOT backbone…

Benno
- 3,008
- 3
- 26
- 41
0
votes
1 answer
Backbone model events/triggers not firing
Having seen it in a couple of tutorials, I'm trying to execute the following line of code in my view
@model.on('change', @render, this)
Unfortunately the change event is not firing and therefore my view is not re-rendering.
I've tried binding to…

socratic_singh
- 183
- 1
- 13
0
votes
1 answer
Backbone.js with jQuery not altering the dom as expected
store-models.js model
(function ($) {
Category = Backbone.Model.extend({
//Create a model to hold friend atribute
name: null
});
Categories = Backbone.Collection.extend({
//This is our Friends collection and holds our Friend…

Neeraj
- 8,408
- 8
- 41
- 69
0
votes
2 answers
Why does my Backbone View button click event not fire
I know this has been asked on here in some form but I didn't see any that matched my scenario really. I'm new to Backbone am still trying to get a handle on how to structure my test app.
After reading this I think I addressed the "DOM not ready…

John
- 429
- 1
- 3
- 17
-1
votes
1 answer
Backbone View events won't fire
I am using Backbone in a project and I am trying to get the events functionality of Backbone Views to work correctly. I have the following code (it is extracted out of my current application):
My Base File:
window.App =
Models: {}
Views:…

Zameer Manji
- 3,017
- 5
- 31
- 42
-1
votes
1 answer
Backbone events for view show and hide
Does backbone.js inherently have a way for me to detect and react to a views 'on show' and 'on hide'?
Or do I need to manually implement this using JQuery?

sazr
- 24,984
- 66
- 194
- 362
-1
votes
1 answer
Backbone.js can't catch trigger event
Hy, so I'm trying to catch a triggered event, but it looks like i'm missing something:
So i have backbone view, and two plane old javascript objects, one is a "controller" and one is my "app" object, and it looks like this:
// View
SearchView =…

Mr. Sam
- 790
- 2
- 9
- 31
-1
votes
2 answers
On and Off event doesn't work well
I create my view with a new collection.
I fire add and sync events :
this.mapDetailsCOllection.on('add', self.onAddElement, self);
this.mapDetailsCOllection.on('sync', self.onSync, self);
Before fetch I do…

Romain Caron
- 257
- 1
- 3
- 15