0
votes
0answers
11 views

Backbonejs collection fetch on user settings update

I am working on backbonejs application and ran into the following issue. I have a view that attached to user settings model and it allows to change settings. I have second view that show some content ...
0
votes
1answer
33 views

Getting value of parent model with Backbone.js

I have a backbone application with the following architecture: A PageGroupCollection is a collection of PageGroupModels. A PageGroupModel has a PageCollection as one of it's attributes. A ...
1
vote
1answer
37 views

Backbone Events Map not Working

I am currently trying to write a model that will simply run a function whenever data is fetched. As far as I am concerned, I am implementing it the correct way but it repeatedly fails to work the way ...
0
votes
1answer
35 views

Storing User Settings in Backbone

I am fairly new to Backbone so my difficultly here may be related to a fundamental misunderstanding of the concepts. My question is, what is the best way to store user settings in Backbone> The ...
1
vote
1answer
29 views

Backbone view is not remaining in DOM

This is my first time building in Backbone and I'm new to MVC programming. I'm having an issue where my View is rendering on my button submit, but not staying in the DOM. Any tips or suggestions to ...
2
votes
1answer
31 views

Best layout mechanism for a (rather complex) Backbone view?

I'm new to backbone and despite reading up on a few resources, a bit unsure still how to structure my view and the corresponding model. The view in question is a custom facebook view, which has a ...
0
votes
1answer
33 views

Backbone update model

In backbone I have created the following models,collections, and views var sensor= Backbone.Model.extend({}) var sensorCollection = Backbone.Collection.extend({ model: sensor }) var sensors= new ...
0
votes
1answer
91 views

How to develop Breadcrumbs for a single page Backbone.js based ASP.NET MVC Application

Im working on a single page ASP.NET MVC application. We are using Backbone.js + JQuery for client side UI and design. I need to put breadcrumbs for Backbone views(which are similar to pages in a forms ...
0
votes
4answers
116 views

Client side MVC instead of server side MVC

Instead of using server side MVC like Ruby, Python, PHP to build very complex websites, why should not we split our website into multiple modules, and build each with client side MVC like backboneJS, ...
0
votes
0answers
55 views

backbone.js model, collection and view structuring for post and thread

Post Model and collection var Post = Backbone.Model.extend({ idAttribute: '_id', urlRoot: '/api/post', }); var PostCollection = Backbone.Collection.extend({ model: Post, urlRoot: ...
0
votes
3answers
86 views

using require and backbone to load templates via html file and not script tag

I have a very simple web page which is using backbone simply to load a view from a template file: <div id="content"></div> <script src="js/vendor/json2.js"></script> ...
0
votes
1answer
48 views

Is it necessary for a collection to have models?

I'm new to backbone. I'm used to defining collections as a set of defined models, my friend, however feels that at times, collections in backbone need not necessarily comprise of models, and can ...
0
votes
0answers
52 views

backbone - how to get the model when listening to “add” event on the collection

first question here at SO :) I'm workin on a backbone project and the main example I rely on is TODOMVC by Addy Osmani, but there's something I cant figure out: on the Todo app inside AppView ...
0
votes
0answers
43 views

Why should a router's callback methods go to a Controller and not the App object itself?

I'm curious why a Marionette router should utilize another abstraction, the controller, to handle various route callbacks? In my current application my Application object is very thin but my ...
1
vote
2answers
293 views

Backbone nested views

I'm working on a Backbone application and I'm not sure if the way what I'm trying to do is the correct way. I have an application view and inside that application view I'm trying to append a ...
0
votes
2answers
213 views

TypeError: Cannot call method 'replace' of null - Backbone.js

I'm trying to do a tutorial backbone project with peepcode, but I got stuck. I am trying to render a view from the console by creating a new view from a collection. Here's my code (function($) { ...
1
vote
1answer
96 views

Backbone subview events

I have a site developed with backbone. I have create an app and inside it I create some subview. In this subview I can have a div (with id close) and if I click on it I have to trigger an event. But ...
0
votes
2answers
220 views

What is use of tagName, id, and className properties in Backbone View? While we can access dom element with el

What I want to ask is that why properties like tagName, id, className exist in Backbone View? Thanks
0
votes
1answer
94 views

backbone.js todomvc add more attributes to model

I want to try out Backbone.js and started with the famous TodoMVC-App. I want to add some more attributes via input fields (orgiginally there is only one input field with "todo"), but I cant figure ...
2
votes
1answer
448 views

Marionette.js compared to Chaplin.js

I currently in the process of concepting a large single page web application. There will be a lot of components, so a separation of concerns is important to me. The Server is basically a REST-Server ...
0
votes
3answers
73 views

Render a sub-view in a parent when the sub-view fetched JSON data from service in Backbone

Am trying to solve this issue when rendering a sub view in a parent view. The parent view is a static chunk of html that will be tabs for filtering the sub-view which is tabular data pulled from the ...
3
votes
1answer
175 views

Using jQuery Tabs with Marionette Layouts

I'm working on trying to use jquery tabs inside of a Marionette region. The HTML for a two tabbed area looks like this: <div id="tabs"> <ul> <li><a ...
3
votes
3answers
384 views

Is there a client side framework built specifically to work with Node.js development practices? [closed]

I would like to know if there is a client-side framework which was built with Node practices in mind? Do I even "need" to use such a framework? I'm not trying to induce a flame war between the users ...
0
votes
1answer
53 views

Backbone.js on Rails - Access data in Rails outside of the Backbone model

I have a Backbone.js application with RoR for the backend. The typical backbone.js setup is it gets the data from the table, and updates/saves data to that same table. However, my backbone model is ...
2
votes
2answers
113 views

Backbone.js: avoid view→model→view double conversion

I’m trying to build this: When I edit field on the left it should update the one on the right and vice-versa. When I type "2" into the fahrenheit field it gets replaced with 1.999999999999, as you ...
1
vote
0answers
67 views

Are there “Core Data” Style data frameworks for web apps? [closed]

enter code hereI'm looking for a javascript framework similar to Apples "core data", that could be used with a MVC framework like backbone or knockout. Ideally you'd be able to define a data model ...
0
votes
1answer
179 views

Update id after collection.create in Backbone.js

On a collection, I am using the create function to save a new instance of a model to the server. This POST request is successful and I return the new model. {id:135, type:tweet, start:08:00:00, ...
2
votes
2answers
517 views

Template two models in one view - Backbone/Marionette

I'm trying to use two models in one view, and template using both of them. I'm working with Marionette. Here is me initialization of the view: main_app_layout.header.show(new APP.Views.HeaderView({ ...
1
vote
1answer
248 views

Uncaught syntax error - Unexpected identifier Underscore.min.js line 24

I am getting uncaught syntax error unexpected identifier - underscore.min.js 24. The error was appearing once I add this checkbox code in the template: template: ...
1
vote
1answer
661 views

Rendering Layouts and sub-views in Marionette / Backbone.js

I have a working solution in regard to rendering layouts with views in regions in a Marionette application I'm working on, but something doesn't feel right about it. Do you have to append anything ...

1 2 3 4 5 9
15 30 50 per page