In Ember I can use this:  App.Router.map(function() {     this.route('accomodations'); });   so if one goes to /accomodations it will load that view.  I can also add:    App.Router.map(function() {     this.route('accomodations', { pa...
I am using UI-Router and need a subview in another view.  I need to render the "owner" view within the "dog" view.  The following works for that purpose:  UI-Router config is as follows  .state('dogAbstract', {     url: '/...
I've been playing with CouchDB (and the RelaxDB ruby library) but creating a view and then trying to access it causes a nasty non specific error. I stepped back a step because I thought RelaxDB might be incompatible with the CouchDB version I'...
I have a happy javascript based client that talks to my Django server-side code. I use several XMLHttpRequests for interactions and everything is fine there.  Now there is one user interaction where I'd like to receive user-sent info at the serve...
If I'm following a rough MVC pattern in JavaScript, what is the best way for the view (such as a button element) to notify the controller?  Should the button fire an event that the controller has to listen to? Or, should the button call a control...
Do you initialize your Backbone views from within a model or elsewhere?   I'm trying to figure out what the best way to organize model/views. Does it make sense to have your models initialize the views?   Thanks for any info!...
Just getting started with Backbone. I have a generic view that can render a collection as a list with a title. I'm currently passing the collection and title into the render method, but that seems a bit odd. Is there another way that's more c...
I have two backbone views defined in two separate files namely:   LandingView.js  define([     'jquery',     'underscore',     'backbone',     'marionette',     'text!templates/landing/landingTemplate.html',...
So i'm very new to backbone.js and not so good at JavaScript in general, so I was wondering if someone could explain to me why   I cannot define my EL property, and Template property in my view, and then use this.template in my render.  Instead I...
I'm thinking about the optimal way to structure my Backbone application. The problem is that I have various complex states, each made by some views showing while all the others are hidden.  What is the canonical way to handle this in Backbone? Tw...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.