Backbone.js is a JavaScript library that provides structure to RESTful web applications.
5
votes
5answers
4k views
Private and public variables to a backbone view
In a backbone view where would you put your private variables and your public.
Right now I have something like this:
myView = Backbone.View.extend({
initialize: function(options){
...
0
votes
1answer
39 views
backgrid with backbone marionette js integration
i am trying to integrate backgrid.js with backbone.marionette.js.
I am able to create jsfiddle some how but don't really know how to integrate this with backbone.marionette.js.
Hopefully some SO ...
0
votes
2answers
25 views
backbone collection fetch() returns one record only
I am trying to fetch list of objects from server, the collection accepts the first record and ignores the rest.
the response from the server is of type application/json
[{"id":1,"name":"A"},
...
1
vote
4answers
1k views
backbone view + google visualisation api
I'm trying to integrate a google visualisation chart into my backbone.js app. Currently I have both the google.load(visualization) and setOnLoadCallback(drawVisualization) calls in the render function ...
1
vote
0answers
15 views
how stable is AirBnB node.js rendr?
I wanted to know if anyone has been using AirBnB Rendr and is it stable and ok to use in commercial projects or is it still changing a lot?
I'm developing a website which can run both client and ...
0
votes
0answers
35 views
I'm a beginner with backbone, how it pass that arg in the function
I'm a backbone.js beginner, just look at an example as below, I wonder this function in the end : appendItem, that passes the argument: item, where and how it pass that arg?
(function($){
var Item ...
2
votes
1answer
64 views
What is difference between $el and el in Backbone.js View
Can you please tell the difference between $el and el in Backbone.js View
1
vote
1answer
45 views
this.collection.each doesn't iterate
I am trying to understand Backbone and tried to create some small REST API fronted, but can not get View to work.
fetch() returns valid JSON array of three elements. And this.collection.models is not ...
1
vote
1answer
23 views
GUI component for display async request states
Which interface or component do you suggest to display the state of parallel async calls? (The language is not so important for me, just the pattern, I can rewrite the same class / interface in ...
0
votes
3answers
26 views
Backbone: Many small requests for model changes vs one collection sync?
What is a general good practice for when some action - changes multiple models in Backbone.js:
Trigger multiple PUT requests for each mode.save()
Single request to sync the entire collection
1
vote
1answer
29 views
backbone.js el exists but does not show content
i'm stuck for a few hours with the el property of a view.
I'm using Marionette.js but it's the same logic, i guess..
Anyways what i do is: create a layout view and add a sidebar to it: (everything ...
2
votes
2answers
460 views
A newbie to use Marionette with JQuery-Mobile (JQM)
Just started to look into marionette and reading the doc.. plus we are new to JQM
Here is how I understand marionette at the ‘very’ high level.
There are concepts of Application and Region, Composite ...
-1
votes
1answer
98 views
Loading templates using jQueryMobile with Marionette
I am trying to use JQM with Marionette but facing an issue. I googled alot last 4days but didn't get a solution.
Problem:- I have an index.html page with empty divs with data-role="page" and ...
0
votes
1answer
25 views
Create require js plugin that listens for a backbone js global event
Is it possible to create a require js plugin that listens for a backbone global event and if that event is fired require js kicks in?
This is the scenario I would like to reproduce with require js ...
1
vote
1answer
14 views
Modular web application decoupling
I am building a web app using requirejs and Backbone. I have modules that build individually and loaded whenever needed. There is a new moduleB now that requires the same collections and models that ...