Tagged Questions
1
vote
2answers
27 views
Backbone Views UI
I am wondering if there is a better way of doing this.
I have some HTML that needs some events attaching to it.
Question 1:
There is no data, models or collections behind it so I assume no need for ...
1
vote
2answers
17 views
Passing Backbone Fetch/Initialise Variable to the view
Using Backbone to gather collections from a JSON service, I have using the view initialise to activate the fetch, however I now want to pass the JSON Array back to the view, but I'm unsure how to ...
0
votes
0answers
13 views
requirejs - how to async require a optimised package
i am building a multi section application [using backbone and requirejs]. for every section i make a requirejs package.
in main config -
"packages": [
"apps/Notices",
"apps/Help"
...
1
vote
2answers
33 views
Scope in backbone
i've called a view (menuview) passing it a var (prova)but from view called it results undefined(console.log(this.model),in menuview). Can anybody help me in finding errors?
ROUTER
home: ...
1
vote
3answers
59 views
Using Backbone.js do I need to use the form tag?
My question is do I ever need to use the form tag?
If I were not using javascript I would use a form tag and it would submit itself. What I mean is that I didn't write any code on the client side. ...
1
vote
1answer
34 views
Checking for unsaved changes when switching views in backbone.js
I am new to Javascript and backbone.js, so hopefully I am missing something simple here. I am experimenting with some sample code I found which is supposed to check for unsaved changes before ...
0
votes
2answers
682 views
Element not ready after Backbone.Marionette.ItemView render?
I'm unable to access an element even in the onRender method of a Backbone.Marionette.ItemView.
For example, I have:
Template:
<input type="text" id="searchBox">`
ItemView:
View = ...
0
votes
1answer
33 views
Using underscore groupby to group an array of objects by more than one attribute
I want to group my JavaScript array of objects by two attributes of the object contained within.
I have tried underscores groupBy and it seems to accept only one attribute at a time.
...
0
votes
2answers
74 views
Backbone 'this' context passing to render
For some reason, I can't get this to correctly be passed to the callback to render the view. I've tried _.bind and _.bindAll methods, but no matter which way I use to pass context, I always end up ...
76
votes
8answers
15k views
“Single-page” JS websites and SEO
There are a lot of cool tools for making powerful "single-page" JavaScript websites nowadays. In my opinion, this is done right by letting the server act as an API (and nothing more) and letting the ...
0
votes
1answer
16 views
window resize event for backbone view
I am using Backbone view in javascript.
I have created a backbone view as follows :
var MaskView = Backbone.View.extend({
className: "dropdown-mask",
initialize: function(){
var ...
0
votes
0answers
23 views
Why is jQuery Mobile defaulting all my content theme elements to 'c' and ignoring data-theme? (with Backbone)
I have a view template loaded through backbone into a jQuery mobile front end. I've got the jQuery styles to take effect, but it seems to ignore my data-theme attribute and use teh value 'c' ...
0
votes
0answers
37 views
Backbone Adding to collection
I am not sure what I am doing is right. But my purpose is to create new cart collection of user chosen products from the list of products. And I want to use this cart collection to display in separate ...
0
votes
0answers
13 views
Mapbox.js: No Erros. Map loads in one view, but does not in a duplicate view on another page.
I'm using backbone/marionette.js. I have a page that loads the map perfectly fine. I have another page that gets all the map information and has no javascript errors but does not load the map in the ...
1
vote
0answers
18 views
Jplayer with BackboneJS not loading flash backup
I have been stuck on this problem for days. I am trying to get jplayer + backbonejs to work in IE 5,7,8 with the flash backkup. I have setup a sample which is working correctly that has jPlayer by ...