Backbone.js is a JavaScript library that provides structure to RESTful web applications.
1
vote
2answers
12 views
Backbone Create
For some reason this.collection.create() is returning an error, but interestingly, the error message seems like the model I just added to my collection.
this.collection.create({
name: ...
1
vote
2answers
8 views
Backbone: firing an event only once on a Collection 'change'
Simple question: What is the best way to fire an event 'only once'?
I have a Collection in backbone with multiple models. Sometimes multiple models' attributes are updated at once, firing multiple ...
0
votes
1answer
7 views
Backbone delegateEvents not bubbling / propagating
Weird problem with event propagation in Backbone. Most people ask how to stop event propagation, but I'm struggling with getting my events to propagate!!
Here I have two View objects. The MainView ...
0
votes
1answer
15 views
Router in backbone not handling route after initialization
I have multiple routers in my app, in general way it looks like this:
// Start backbone.js
if (!Backbone.History.started) {
Backbone.history.start({pushState: true, hashChange: false});
}
// ...
1
vote
1answer
16 views
Backbonejs: Listening for button clicks on seperate view
I have a parent view (View.A) that manages child views View.B and View.C. View.B has a button interface that controls events on View.B.
setup
View.A
View.B
view.B.template.html
View.C
...
0
votes
1answer
8 views
Isolating AJAX dependencies when rendering model dependent templates in Backbone
I'm currently working on a web app that uses Backbone for rendering templates based on model data pulled down from a server. Below is my boilerplate code (in CoffeeScript) for model-based template ...
0
votes
1answer
27 views
Is this pattern correct for performing region switching with Marionette?
This question is based on my previous one Switching from a region to another in Marionette, views are not rendered correctly. It differs from it since I'm asking if the approach I'm following is ...
0
votes
2answers
47 views
javascript method to get time correctly
i'm using Date().getTime() to set time of activity of user in my app. But in two different machine (mobile and pc)seems return different value. If i get time first from mobile and after from pc, the ...
0
votes
0answers
30 views
Refreshing page from browser (Backbone.js and ASP.NET MVC)
I have a single page application with several controllers and actions in each controller all of which return a json result if the page is accessed from a mobile device.
Backbone than loads the ...
1
vote
1answer
23 views
Loading model or collection
I'm new to Backbone and I was using ExtJS before. My goal is to populate a Backbone collection with some data. Now... in ExtJS if I wanted to load a collection than I was using the .load() method that ...
0
votes
1answer
19 views
Google Visualization Chart Detached Dom Tree
I have a dashboard web app written using Marionette and requirejs. In this app I use the google visualization api to generate my charts.
A while after started development I noticed that I had memory ...
0
votes
0answers
22 views
Understanding Backbone and Marionette View lifecycle
I'm new to this world and I need to understand some of the concepts of Backbone and Marionette. Here I'm trying to explain some of the concepts I'm learning. It would be great to having some feedback ...
0
votes
1answer
31 views
How to validate only one HTML control using jQuery
i have a text box in which only positive value can be entered, if the negative value or zero is entered than remove the value and color the text box in red to indicate the user that he is not supposed ...
0
votes
0answers
23 views
Do you know some gem to collect and display statistical data on your rails web app?
I have a web app that manage user-generated knowledge base based on question and answer. This app is composed on an embeddable widget in backbone and a web dashboard to manage the widget and the ...
0
votes
1answer
26 views
How to integrate D3.js with backbone.js
i am new to backbone.js and I am trying to integrate my work to backbone.js structure. As far as I know the point is to separate the codes in to MVC pattern and i have some html files that are mainly ...