Skip to main content

All Questions

30 questions with no upvoted or accepted answers
3 votes
1 answer
233 views

Backbone error if I have more than 1 JSON group

I'm currently playing around with Backbone.js and have ran into an issue in dealing with JSON and outputting it. The problem I'm have is that my code runs just fine if I have only one entry in my ...
David's user avatar
  • 367
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....
Gimali's user avatar
  • 787
2 votes
1 answer
52 views

Why doesn't my plugin load its dependencies?

I working on an app that uses require.js to load dependencies. I have also written a plugin for jQuery that is used in the app. The jQuery plugin depends on Underscore but does not support AMD. My ...
fiskeben's user avatar
  • 3,445
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: ...
ALi Hz's user avatar
  • 25
1 vote
0 answers
55 views

Require.js - order of loading libraries?

Im trying to make Single Page Application (with Knockout.js - it's necessary to use it) which imitates products page in online shop. Here's how it looks like (for better understanding): main page ...
Tymur Yunusov's user avatar
1 vote
0 answers
31 views

Mixins not available some of the time

My current set up uses requireJS for module loading and Underscore for its many utility features. The issue is that the custom mixins I'm adding to Underscore are sometimes unavailable. It seems ...
Luke Todd's user avatar
  • 123
1 vote
0 answers
909 views

lodash loaded through requirejs and with a script throws "Mismatched anonymous define" error

I am working on an application that uses requirejs and loads underscore with it but also loads underscore as a node_module using a script. Since we needed functionality found in lodash I decided to ...
Michail Michailidis's user avatar
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 ...
Aleksandr Litvak's user avatar
1 vote
0 answers
159 views

Identical public/private ip address by host name

I host my backbone + require + underscore .js website on a public server for the clients browse and also in local server of my company for employees. People outside can access to my website by ...
Nothing's user avatar
  • 2,642
1 vote
1 answer
77 views

Clicking button did not work in view of backbone js

I am newbie to backbone.js, I create a contact form and want to use it in several pages of my website. I am using text.js to make html file for each template of the project. Here is customer view, ...
titi's user avatar
  • 1,035
1 vote
1 answer
477 views

Problems loading backbonejs and underscorejs with requirejs

I have problems loading this libraries with the shim option in RequireJS (maybe, because my poor background on that library). I try to look in documentation and see some other pages but the problem ...
JetSpyDragon's user avatar
1 vote
0 answers
1k views

Underscore nested each loops with Backbone Views

Trying to nest the rendering of each measureView, and its children (the beatView(s)) in the same measureView.js file. We are using require.js for path definitions, so forgive some of the undefined ...
chris Frisina's user avatar
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 %>. ...
RomM's user avatar
  • 3
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 ...
RAVI singh's user avatar
0 votes
1 answer
181 views

How to use underscore.string globally in a web page (with requireJS)

The documentation says once underscore.string included in my application, the library is available using s, __s global variables (http://epeli.github.io/underscore.string/#others), or within ...
Simmoniz's user avatar
  • 1,080

15 30 50 per page