0
votes
0answers
28 views

RequireJS include script with paramaters

I've been playing with BackboneJS, MarionetteJS and RequireJS recently and was wondering how to include an external script with paramaters and settings? Normally it would be included like so: ...
1
vote
1answer
29 views

How to extract id param from Backbone Router

I have a router set up as follows: var Router = Backbone.Router.extend({ routes: { "/SomeApp/Scene/:id": "main", } main: function (sceneId) { console.log(sceneId); } ...
0
votes
1answer
32 views

backbone.js: connecting model to view issue

Here is some code: var TopPanel = Backbone.View.extend( { initialize: function() { this.listenTo(this.model, "change", this.render); }, render: { ... } }); var MyData ...
0
votes
0answers
24 views

get backbone collection/model instances from a live app

Here is a web app which runs on backbonejs http://housing.co.in I am unable to find the variable instances of Backbone Collections, Models, etc but I'm sure that it uses backbonejs. I used to get ...
0
votes
0answers
22 views

window.scrollTo is not working within an event handler

I use the modal module of Bootstrap.js. The default behavior will also put the modal on top of the page. I set the location of the pop up modal box through the following code (I am using Backbone): ...
0
votes
1answer
22 views

Backbone create a complex tagname view

I konw that i can creat a simply tagname as: var Home = Backbone.View.extend({ tagName:"li", but I need to create a complex tagname in my view as: <div ...
1
vote
1answer
43 views

Backbone view don't get el in template

i'm calling a view of list element with itself html ,in this view there is an iterative calling to another view of single item.The proble is that the first view of listelement can't see itself html. ...
0
votes
2answers
27 views

backbone.js collection where() function

I'm reading a book on rapid prototyping in JS. There is this line of code: var appleModel = this.collection.where({name: appleName})[0]; I know where() returns matching models in the collection. ...
0
votes
1answer
31 views

How to remove the # in Backbone.js URL's

I am new to Backbone.js, still learning it and 1 problem I have run into is a lot of resources online are outdated and things have changed in Backbone.js since the time the resources were created. ...
0
votes
0answers
20 views

Backbone + RequireJS + Self-Relational Model

I'm currently using Backbone + RequireJS. In my application, I display a tree widget that is constructed with the same Model with nested Collections. That is to say: FooCollection ...
0
votes
0answers
19 views

Backbone Custom Preloader Optimizations

I've been getting stuck into the backbone.js framework in the last few weeks and I'm loving it! I've been working on a custom preloader app to familiarize myself with the frame work. It works but I ...
-2
votes
0answers
17 views

Javascript: Require, Backbone, and Cordova. Where should you bind onDeviceReady? [closed]

Currently I am binding 'onDeviceReady' in my base app file that I extend from 'Backbone.Events' and just calling one off scripts without using my routing, but that doesn't seem right. I am curious ...
0
votes
1answer
22 views

Passing JSON to Backbone.Marionette View's Template

So I'm trying to implement some handlebar directives to one of my templates, but I'm kind of lost on how to pass the JSON to the template so that it can make use of it in the directive. Currently I ...
-1
votes
0answers
18 views

Backbone and jquerymobile:can't disable routing

I'm triyng to disable jquerymobile's rounting but appear error loading page and the url is no catched by backbone.I've disabled all parameters of jqeurymobile as read on some tutorial. Here where ...
2
votes
1answer
38 views

backbone.js: code for calling function from nested view doesn't work

I have made the following code, which runs without errors, but after I press the button, it makes an error: tabClicked is not defined. var MainView = Backbone.View.extend({ initialize: function() ...

1 2 3 4 5 297
15 30 50 per page