backbone-views Questions
1
Solved
I am not sure why this is happening. This looks very unusual to me.
Generally when i want an action to be performed on a button click i will use this
events:{
'click #button_name':'somefunction'
}...
Jactitation asked 23/9, 2013 at 14:56
1
Solved
Our application uses Mustache templates in the index.mustache and makes the initial API call with Symfony instead of using Backbone. This is so the user won't be staring at a blank screen on initia...
Prevot asked 22/8, 2013 at 9:39
1
Solved
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 feedba...
Farce asked 9/8, 2013 at 9:36
1
Solved
Say I have these two Backbone.Marionette views:
var FooView = Backbone.Marionette.ItemView.extend({
tagName: p,
id: 'foo',
template: this.templates.summary
});
var BarView = Backbone.Marionett...
Velites asked 8/8, 2013 at 2:40
3
Solved
I have a backbone application that has a number of views. Switching between views triggers Ajax requests to get different collections. I would like to stop the current "read" ajax request if a new ...
Deuce asked 5/10, 2012 at 15:7
1
I am currently trying to utilize the new WordPress 3.5 media manager which uses backbone.js to create and populate its modal window.
What I want to do is: a user clicks upload button, media manage...
Postiche asked 3/2, 2013 at 17:8
1
Solved
Let's say I have two views (paginationview and postsview) and a collection (postscollection). Whenever the .next button is clicked in the paginationview I am calling the next function in the postsc...
Psych asked 10/7, 2013 at 19:42
1
Solved
I am trying to understand the relationship between a model and a view. I've tried building a model and view to render that model.
I get the error Cannot call method 'toJSON' of undefined which I u...
Bondage asked 11/5, 2013 at 15:54
2
Solved
I can attach handlers to Backbone Views like:
var TodoView = Backbone.View.extend({
events: {
"xxx": "eventHandler1"
"yyy": "eventHandler2"
}
});
But what if I want to attach more than 1 ha...
Frederique asked 6/6, 2012 at 6:57
1
Solved
I have a three Backbone View class inheritance:
var preventRecursion = 0;
var parentView = Backbone.View.extend({
initialize: function(){
console.log('parentView');
}
});
var nestedChildView...
Freelance asked 13/4, 2013 at 11:51
1
Solved
Here is my basic backbone view for changing routes. I would like to get the href attribute of the clicked link. How to do that? Here is a code bellow:
var Menu = Backbone.View.extend({
el: '.nav...
Archegonium asked 2/4, 2013 at 11:57
3
Solved
How should a view's el be handled?
It has to be set, otherwise events don't fire (see here).
But should it be an element that is already on the page?
In my app, I render a (jQuery Templates) templ...
Cini asked 11/4, 2011 at 17:12
1
Solved
I've been doing a bunch of reading about nested views in backbone.js and I understand a good amount of it, but one thing that is still puzzling me is this...
If my application has a shell view tha...
Kunstlied asked 7/3, 2013 at 17:54
2
Solved
Having trouble showing, hiding, and then re-showing Marionette Layouts. I believe this problem also applies to regular Backbone Views and Marionette ItemViews as well though.
In summary, I have a ...
Vickyvico asked 23/9, 2012 at 18:32
3
Solved
I've looked everywhere for an answer but wasn't satisfied with what I've found.
The issue is, I'm doing a tutorial from Addy Osmani to make a 'Todo' app in Backbone, but when I look at the consol...
Humanly asked 14/2, 2013 at 1:33
2
I'm trying to figure out following scenario:
Lets say that I have two views: one for viewing items and one for buying them. The catch is that buying view is a sub view for viewing.
For routing I...
Sigfrid asked 22/1, 2013 at 14:32
4
Solved
I understand that using the same id multiple times in a page creates malformed html. When using a jquery selector only the first element with the id will be returned, but in my application I should...
Tuddor asked 21/1, 2013 at 19:42
2
Solved
I have different buttons (one for creating a 'sprint', another for creating a comment, etc). The forms for doing these tasks are appended to a modal dialog that is displayed when you click on the d...
Teetotalism asked 31/10, 2012 at 17:18
1
Solved
I need to create a base view which all my views would extends.
I'm not really sure where and when to declare this view.
Basically, I need to inject global variables to all my templates and I don't...
Tolkan asked 4/9, 2012 at 9:14
1
Solved
I think I may have a fundamental misunderstanding of how Marionette.Layout is intended to be used.
I'm trying to something like this:
The layout includes two Marinotette.ItemViews: The "Explode...
Slumber asked 15/8, 2012 at 17:33
4
Solved
I need to have arguments to the functions used in the events object in Backbone.
var DocumentRow = Backbone.View.extend({
tagName: "li",
className: "document-row",
events: {
"click .icon": ...
Unwish asked 1/8, 2012 at 15:19
1
Solved
Can a Backbone.js View have a Model and a Collection?
The reason I am asking is because I'm working with a View that holds a map with places plotted on it (using the leaflet library).
The Collect...
Computation asked 23/7, 2012 at 22:3
1
Solved
I'm trying to get the click event to fire, but it's not working. Maybe someone can see something I can't.
ConnectionView = GlobalView.extend({
tagName: 'div',
events: {
"click .social-links": ...
Dupuy asked 26/6, 2012 at 16:56
1
Solved
I have a backbone view which load subview. When I load a subview, I would like to show a loader when the view fetch needed datas and hide the loader when the view is ready to render.
I did somethi...
Yahoo asked 15/6, 2012 at 8:44
2
I'm declaring a View like this:
var VirtualFileSelectorView = Backbone.View.extend({
selected: function() {
console.log("selected function");
},
initialize: function() {
// Shorthand for the...
Beare asked 3/6, 2012 at 19:57
© 2022 - 2024 — McMap. All rights reserved.