I have some routes:  routes: {     "": "main",     "!/": "main",     "!/page": "page",     "!/page/:id": "page" },   Then I have some html link, for example:  <a href="site.com/#!...
How do I make a call to the server using Backbone localStorage I saw this question, but I am not sure where I apply it?  Backbone.js able to do rest and localstorage?  Here is my code for the view:  define([   'jquery',   'underscore'...
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...
My view should be destroyed after the current route position is left.  So in this schematic example the login view should be destroyed after the user entered his credentials:    I tried to solve this by using Backbone.Router events:  var Router = Bac...
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...
Using backbone, is it any way to store some data in the history so it can be retrived when a back is called?  In a none backbone application I the application will be something like the following. When executing an action:  //When doing some action h...
I've been working through codeschool.com's tutorial on backbone.js And submitted:  var AppRouter = new Backbone.Router.extend({   //code }); $(function(){ AppRouter.start() });   and it gave the following error message:  TypeError: 'undef...
What I would like is a route that can handle all the following routes in 1 line.  Currently it looks like this:   routes: { 'item': 'itemConsole', 'item/view/:workflowId': 'itemDetail', 'item/create': 'item...
could you please tell me how to navigate from one page to another page in backbone . I want to show second html on button click how it is possible  I so like that .I resister event like that  events: {          'click #click':'moveTonext&...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.