All Questions
102
questions
1
vote
0
answers
137
views
show local json data from collection in backbone.js
I have a local json file. I need to put these data in a Backbone.Collection, then receive this collection in a Backbone.View and render the data in a template. So I tried many ways but...
Model:
...
0
votes
0
answers
150
views
Backbone.js underscore template rendering issue
I'm having a hard time getting server data to render in my underscore template. The underscore markup displays on the page as a string, for example inside the div, you can see <%= test %>.
...
0
votes
1
answer
48
views
Loading Backbone.js with require.js
We are using OCC platform for our E-Commerce site which uses require.js to load the modules,
We need to load backbone and Underscore.js but when we use both the library we get the error that ...
0
votes
1
answer
70
views
Backbone.js : Associating params to events callback function
I am creating custom events for a list of events. I have these events in a file (event.js) like this:
define(function(require, exports, module) {
module.exports = {
'event1': ['test1','data1'],
...
5
votes
1
answer
2k
views
Uncaught SyntaxError: Unexpected token import in "backbone.radio.js"
I'm trying to migrate an application from Backbone to Marionette (v3), but I got stuck in a point for two days already.
When I try to run the app in browser, this error shows up in the console (and ...
1
vote
2
answers
2k
views
Why do I need to load jquery twice [duplicate]
In my html page, I need to put jquery twice. If I take anyone of them out my page , then the page does not get rendered. Kindly note that both the included "jquery" are pointing to same location.
I ...
1
vote
0
answers
145
views
Requirejs potential race conditions loading backbone and underscore
The error belowhappens around 1/10 refreshes when using requirejs to pull backbone and underscore from amazon s3 that is defined in the require shim located in the /shared/common.js file.
The ...
0
votes
2
answers
728
views
RequireJs text plugin and UnderscoreJs templates
Alright people,
I am using the RequireJs text plugin to pull in underscore templates (.html) in my backbone application. Unfortunately my underscore code in my templates are being rendered as plain ...
1
vote
2
answers
1k
views
How to load a dynamic view css file using requireJs & Backbone
I need that each view will load it's own css file when navigate to the view.
currently the css file have been loaded ( I can see it loaded on the network section) but it's not effect the page style
...
1
vote
1
answer
466
views
Backbone View Render with Loop no data?
I'm currently building a backbone JS page with underscore and require, everything seems to work but my HTML gets renderd the correct number of times but without the data?
Please check image at bottom ...
2
votes
0
answers
209
views
underscore template with require js text plugin not working
So I've this template in a html file -
<%= x %>
And in one of my view, it's been loaded with help of requirejs. I want to load this template with data.
var template = _.template(this....
1
vote
2
answers
1k
views
Is it possible to use the most recent versions of JQuery, Underscore and Backbone without RequireJS?
Until now, I had a compatible combination of libraries (JQuery, Underscore, Backbone). They worked without any problems.
But these versions are pretty old and I want to upgrade to the newer versions. ...
1
vote
1
answer
221
views
My underscore template won't render my collection in my Backbone App
I'm new to backbone and have been working on my first app. I've been trying to display a collection through an underscore template, however my content isn't showing up. The template exists in require, ...
0
votes
0
answers
518
views
Dynamic Menus from JSON REST API using backbone.js
I'm newbie in Backbone.js, Marionette.js, underscore.js and require.js frameworks.
I'm trying to build a dynamic menu by calling REST API which returns a JSON array format.
Here is my JSON response :-...
0
votes
1
answer
719
views
Backbone.js: Collection is undefined when using template [duplicate]
I am currently trying to learn backbone.js on my own. I have looked at the tutorials such as Thomas Davis's @ https://backbonetutorials.com/ and youtube channels. I am trying to make a modular ...