Backbone.js is a JavaScript library that provides structure to RESTful web applications.

learn more… | top users | synonyms (2)

0
votes
2answers
14 views

Are Backbone Models Singletons?

I'm not a JavaScript expert so I might be doing something wrong here. I have a simple Foo Backbone model with a default property bars which is an empty array. I create two instances of the model. I ...
0
votes
0answers
4 views

Understanding Backbone.js view's collection and filtering/resetting (from Router, Event, etc)

I'm still getting comfortable with Backbone.js, and there are plenty of times when I really think I'm getting it - then something so trivial pops up and rocks my world and makes me rethink if I even ...
0
votes
0answers
5 views

KnockBack ViewModel of Backbone.Collection doesn't seem to create kb.CollectionObservable

Take the following code: var model = new Backbone.Model({ items: new Backbone.Collection([ new Backbone.Model({ ID: 1 }), new Backbone.Model({ ID: 2 }) ]) }); var vm ...
0
votes
2answers
15 views

Javascript is not working in text template in backbone.js

I want to apply bootstrap datepicker library for date input.I am using backbone and i have written templates. i am writing the following code : <script> $(document).ready(function() { ...
0
votes
1answer
22 views

Zombie object not removed by remove() method in backbone.js

Am developing a small web application in backbone.js .In one view i am using setInterval method to provide some animation effect . [ changing the src attribute of an img tag at the interval of 3s by ...
0
votes
1answer
15 views

Need Suggestion on Using Underscore Templates in Backbone Views

Im working on an ASP.NET MVC web application in which we are using Backbone.js framework for organizing client side architecture and design. Our application is totally dynamic, creating most of the ...
0
votes
0answers
14 views

How to set a list of Models on a Collection with Backbone

I'm trying to update a list of models from my AppView linked to my Collection but I'm not sure how should I do it. I thought to do it on the render function, the purpose is to set a specific property ...
0
votes
1answer
17 views

backbone js, routing error and url is auto change

I have problem with routing backbone. I call Backbone.history.start() in products index (localhost:3000/products). Routes: '': 'product_index' ':id': 'product_show' (tag 'a' link ...
0
votes
1answer
12 views

Sub template is not rendering using backbone and underscore

I have two templates (Header and Details) - Header contains some details and also on place holder for Details sections - Details contain some more details. My problem is when i run application it ...
0
votes
0answers
33 views

How Can I create a new item that I get from createDialog view?

I'm using Backbone 1.0 and I have the following view: var vew = Backbone.View.extend({ el: { 'click .open-create-dialog': openCreateDialog }, initialize: function () { ...
0
votes
1answer
10 views

type error : object is not a function Backbone.js

I get this uncaught type error of object is not a function when trying to write a collection view. I have used the same code while doing the App but as am re doing the app with require.js, I get this ...
0
votes
0answers
10 views

firebase login password backbone and phonegap

I'm trying to integrate firebase login mechanisms into my phonegap application based on backbone.js and require.js. I successfully set login with facebook and login with twitter and they seem to work ...
0
votes
1answer
11 views

how to know that animate.css animation is completed with addClass in backbone view?

I'm using animate.css to put some nice effect to my backbone views. One of the animation I'm using is the flipOutX when a list item is deleted. Here is my drop function: drop: function() { var ...
0
votes
1answer
20 views

Backbone Model fetch without id (for showing logged in users details)

I thought this to be an easy thing but I am stuck. Here is the code: On Server: app.get('/api/currentuser',function(req,res){ User.findOne({ _id: req.currentUser.id },'name',function(err, ...
0
votes
1answer
24 views

Backbone Collection.fetch gives me Uncaught TypeError: object is not a function

I'm working on a Backbone app with RequireJS and lo-dash libraries, everything working fine but I'm having problems with setting json data to my Collection objects. The RequireJS configuration: ...

1 2 3 4 5 629
15 30 50 per page