backbone-routing Questions
1
How would i go about using Bootstrap's Scrollspy when I am using Backbone.js hash based routing?
Backbone router example, which creates page www.example.com/#somePage/123
var AppRouter = Backbone...
Location asked 4/12, 2012 at 3:48
3
Solved
I am using the Backbone.js router to fire certain initialization methods when the user hits certain URL routes. So going to /posts/1 via a vanilla anchor tag should fire whatever callback is associ...
Purify asked 5/12, 2012 at 6:41
4
Solved
I have read in several places that calling the Backbone.history.navigate function is considered bad practice.
For example Addy Osmani sais in his book "Developing Backbone.js Applications"
It i...
Reminisce asked 22/7, 2013 at 20:25
5
Solved
Will Backbone.Router.navigate set test to true:
var test = false;
var Router = Backbone.Router.extend({
routes: {
'posts': 'showPosts'
},
showPosts: function () {
test = true;
}
});
router...
Shirker asked 26/7, 2012 at 14:21
1
I am currently using the Backbone router for my SPA. It sort of works OK, but I am having a number of small issues:
The problem is - I want to either have pushState navigation or none, meaning - a...
Delectate asked 7/2, 2014 at 9:6
3
Solved
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 curr...
Billiot asked 3/12, 2013 at 13:0
1
Solved
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...
Jennette asked 10/12, 2013 at 7:17
1
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:...
Platitudinous asked 19/10, 2013 at 17:45
3
I'm trying to implement the { pushState : true } but it works only for the base route, not with the other that continue to give me error 404.
In Chrome, If I access:
http://example.app/ - OK the ...
Misdemean asked 11/3, 2013 at 22:6
1
Solved
I have a backbone application and i would require to know the router from which the current route is accessed. Is it possible?
For eg :-
I reach #/current from #/test1 and also in another instanc...
Gangboard asked 11/9, 2013 at 7:26
2
Solved
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...
Charmainecharmane asked 18/1, 2013 at 11:44
1
Solved
I've been doing a bunch of reading about nested views in backbone.js and I understand a good amount of it, but one thing that is still puzzling me is this...
If my application has a shell view tha...
Kunstlied asked 7/3, 2013 at 17:54
1
Solved
I am trying to redirect route to another before route callback is executed. I have following piece of code:
console.log("file loaded");
(function (History) {
var _navigate = History.prototype.nav...
Microlith asked 12/2, 2013 at 19:12
3
My code is as follows:
var AppRouter = Backbone.Router.extend({
_data: null,
_length: 0,
_index: null,
_todos: null,
_subtodolist: null,
_subtodos: null,
routes: {
"*action": "index",
"...
Avina asked 27/4, 2012 at 7:31
2
Solved
I'm new to web dev and was blown away by the demo on Meteor's site and would like to use it. I've only used Google App Engine so far and to handle a dynamic URL in the main class I would write some...
Erickaericksen asked 25/7, 2012 at 18:12
2
I am planning to use backbone + require for an application which has more than 30 modules. Instead of creating separate route for each module, I am planning to create something like this.
Not sure...
Octahedrite asked 28/8, 2012 at 6:37
2
Solved
Given:
Tom — who has a modern browser which is pushState-enabled
Fred — who has a browser which is not pushState-enabled
a super.app web application powered by Backbone
Tom browses to products/...
Clove asked 26/7, 2012 at 15:26
1
I know the best practises says "your content must be available on page load" and i did it so.
If user navigates to /questionnaire/info/id/2, PHP serves the full html. But problem raises after this ...
Horehound asked 20/7, 2012 at 10:18
3
Solved
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 th...
Psychiatrist asked 29/6, 2012 at 16:11
1
Solved
I divided my app in several apps.
main.js
app.js
app1/
|- routing
|- controller
|- app
app2/
|- routing
|- controller
|- app
1) When I try to use the routers in app1, they work.
2) When I ...
Coccidioidomycosis asked 17/6, 2012 at 9:50
1
Solved
Let's say my app works but I love to learn and to find the best way of doing things.
I really appreciate this post about Reducing Backbone Routers To Nothing More Than Configuration.
And the follow...
Reggi asked 15/6, 2012 at 10:19
1
Solved
Router in Backbone.js is responsible for routing client-side pages, and connecting them to actions and events based on urls. But how to trigger the url change? I mean if the only way to do this is ...
Thymol asked 27/4, 2012 at 5:33
1
Solved
These are my initial days of working on BackBone.js. I am actually stuck with the router part as i am getting an error in the console "Error: a url property or function must be specified". This is ...
Bronco asked 9/4, 2012 at 17:0
1
Solved
Here is my application-router.js file where i'm creating Backbone.Router object with just only few routes:
var App = App || {};
App.Router = Backbone.Router.extend({
routes : {
'' : 'showDashbo...
Perrins asked 7/3, 2012 at 2:55
1
© 2022 - 2024 — McMap. All rights reserved.