Generally, the user enters the website through the home page and then I render the sidebar view there. Next, the user clicks a link and the router renders another view and replaces the original content view. The sidebar view is not re-rendered.   Whe...
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 on them.  The render function defines...
I'm trying to make a simple view to test with backbone. I've started with events, but no one fires. Why ? I've made already other things with backbone like routing etc. without problems. Thanks for your time. My backbone definitions are f...
Edit  According the Hammer Github page this bug was due to Manager leaks and should be fixed in the 2.0.5 version - this version is not built online but one can built it by himself. More info can be found here  =======================================...
I'm trying to switch the tagName of a Backbone view based on a condition.  I initially thought I would be able to set a default tagName of say 'div' (I realize this is the default), then in the view's initialize function, check for th...
MY simple form template is like this  <script type="text/template" id="template"> <form id="myForm " > <fieldset>     <label>Name</label>     <input type="text" id="name" name=&...
I am trying to implement a simple app which is able to get a collection for a given object_id. The GET response from the server looks like this:      [     {object_id: 1, text: "msg1"},      {object_id: 1, text: "msg2"},      {object_...
I have the next code to replace content using Backbone.js  jsfiddle  I don't know why the checkbox button grows when the content is replaced. Simply, I use the next code to checkbox   $('.checkWeek').button();...
I am looking for a way to create global bindings that will span all views within the app, so that I do not have to set up these within each view individually.  Bonus points if suggested mechanism has a way for individual input fields or views to opt...
Here's the goal: I have a parent model. It is in a collection called parents. In a parent is a collection of children. So, when I instantiate the parents collection, I get the parent models, each with the collection of children in them.  I've...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.