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
Why does my simple backbone view click event not firing?
here is my scenario of backbone view
var TreeNode = Backbone.View.extend({
tagName : "span",
className : "ndelem dirnode",
events : {
"click" : "selectNode",
},
initialize : function() {
…

user1834809
- 1,311
- 4
- 17
- 28
0
votes
2 answers
Backbone.js: capture custom events on jQuery plugin?
I have a Backbone view for a search form. The form includes several elements, including a slider implemented in jSlider. I want to capture all changes to the form, and update the results shown accordingly.
I can capture the click events fine, but I…

Richard
- 62,943
- 126
- 334
- 542
0
votes
2 answers
Passing 'drop' in the context of a draggable backbone view, and passing ui.position into it
I'm trying to make a mock-up application for prototyping apps, using backbone & jQuery.
It's pretty minimal at this point.
http://jsfiddle.net/IgnorantUser/u7JkX/
I just have 2 models Canvas and ButtonWidget.
There are also 3 Views: the CanvasView…

IgnorantUser
- 197
- 1
- 12
0
votes
2 answers
How to handle a simple click event in Backbone.js?
I am having difficulty with something very simple in Backbone. I want to wire up the in my page so that when the user clicks on it, it returns seamlessly to the homepage, without a postback.
This is the HTML:
in my page so that when the user clicks on it, it returns seamlessly to the homepage, without a postback.
This is the HTML:
Richard
- 62,943
- 126
- 334
- 542

Richard
- 62,943
- 126
- 334
- 542
0
votes
2 answers
jQuery & Backbone: How to append a view on drop event, under certain conditions
I have the following View of my CanvasModel, on which the user can drag & drop various widgets from a toolbar. Whenever something is dropped into the CanvasView a new WidgetView instance will be appended into the DOM.
The recently appended Widget is…

IgnorantUser
- 197
- 1
- 12
0
votes
1 answer
BackboneJS + RequireJS allow view to act on a collection using global event dispatcher
Update: Problems solved, case closed.
I'm still having problems getting one part of my code to work.
My view now listens to the collection for updates, and what should happen is:
ListView listens to Results Collection
Results are synced
ListView…

Matthew Lucas
- 443
- 1
- 5
- 15
0
votes
1 answer
Backbone.js touch events
In backbone what's the best way to swap out click events for touch events.
I went down the route of using MBP.fastbutton which worked well for iOS however I am trying to move my code over to Android and need to use iScroll which doesn't seem to…

Clawg
- 349
- 2
- 4
- 18
0
votes
0 answers
Backbone.js - Correct event to bind when creating a model
I have a Backbone view that binds to the add event of a notes collection like this (using CoffeeScript):
initialize: () ->
@options.notes.bind('add', @noteAdded)
And here's the noteAdded method and also the addOneNote method that is…

kolrie
- 12,562
- 14
- 64
- 98
0
votes
1 answer
Backbone collection is not updating when api is polled
I'm having some trouble getting change events to fire when a model is updated via polling of an endpoint. I'm pretty sure this is because the collection is not actually updated. I'm using the new option (update: true) in Backbone 0.9.9 that tries to…

AndrewJesaitis
- 480
- 4
- 15
0
votes
1 answer
Bind and trigger backbone event to a specific view
I'm creating an ajax upload component which consists of a progress bar for each backbone view, this is how my view template looks like.