I have some routes:  routes: {     "": "main",     "!/": "main",     "!/page": "page",     "!/page/:id": "page" },   Then I have some html link, for example:  <a href="site.com/#!...
I am in the following situation.  I am using requireJs to loads module and I don't want to use global variables.  The main.js is responsible to load the router. Then the router loads the app and the app loads several subApps.    After everything...
So I have a react app using the Backbone router, yet when I try to navigate on DOMContentLoaded, I get:  Uncaught Error: Invariant Violation: _registerComponent(...): Target container is not a DOM element.    I have tried stepping through the stack t...
I have a simple router:  Erin.Router = Backbone.Router.extend({     initialize: function() {         Backbone.history.start({pushState: true});     },     routes: {         '' : 'index',         'project/:img' :'project...
My route function is not triggered when I call app.navigate("/search#?q="+q, {trigger: true});.  The route are defined well because if I refresh the page after the navigate() call, the route function is correctly triggered.  Any ideas ?...
My app's index page is at http://cms/admin (I'm on localhost). On the index page there is only one a element:  <a href="/admin/test">deneme</a>   When i click on the link it goes to /cms/admin/test  I want to use BackboneJ...
i have created a backbone model like mentioned below  LoginModel = Backbone.View.extend({             initialize: function(){              },             defaults:{                 username: '[email protected]',                 password: 'X...
We have a Marionette view, let's call it 'products' there we have a 'submit' button, which shows another view, but, without changing the URL. So, the problem is, that inside the 'submit' view, if the user presses the back...
So I can fetch a collection from the database and display it using this code:  var articles = new SimpleGoogleReader.Collections.Articles(); articles.fetch({   success: function(articles){   var view = new SimpleGoogleReader.Views.ArticlesIndex({mode...
I'm moving my django implementation slowly to backbonejs rendering. Django is used as a fallback when backbonejs rendering cannot handle. This is taken care by backbonejs router using the following code.  Backbone.history.start({     pushState: t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.