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'm getting this error, when I want to initialize the view from router class. Error is: Uncaught TypeError: Object # has no method '_ensureElement' BlogFormView: App.BlogFormView = Backbone.View.extend({ el: ".data-form",...
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...
I am a very beginner in backbone.js. My page navigation looks like this: The left navigation defines four view types, while the top navigation should update the datamodel and re-render the current view (that's what I have in mind). I want to...
I'm trying to set up routing in Backbone 0.9.10. I'd like to match routes of the following kind: /england/ /england/birmingham /france /france/paris ... etc. This is what I have in my router at the moment: var AppRouter = Backbone.Route...
I have built a web app using backbone.marionette. When, from a Marionette.ItemView, I trigger the event document.location.hash: document.location.hash = '#tasks/' + this.model.get('id'); 1.a) it changes the URL 1.b) it triggers th...
I'm using Backbone with Marionette. I have a link <a> tag where I'm passing few parameters, how can I extract those values in other pages using Backbone? <a href="http://localhost.com:8080/help/?name=matth&age=25&email=...
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...
©2020 All rights reserved.