All Questions
37
questions
0
votes
1
answer
402
views
RequireJS shim config for ngRoute and Underscore.js
I am trying to load the dependencies for various angular modules using require.js. After configuring the dependencies in dependencies.js file, I get an error while loading the application which states ...
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 ...
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. ...
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 ...
0
votes
1
answer
532
views
Template not rendering underscore error
Hi i'm new to backbone using require and underscore. Want to render a template please correct me . Dont know where i'm going wrong.
mainParentTemplate.html
<div>
manojbojja
</div>
...
0
votes
1
answer
389
views
Uncaught ReferenceError using underscore template with backbone
I'm trying to render some HTML using the underscore template function. The problem is I'm getting Uncaught ReferenceError: data is not defined when I load the script locally on my machine.
It seems ...
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 ...
0
votes
1
answer
1k
views
Cannot render the template since it's false, null or undefined
I am working on template system using backbone.marionette.js.
Here is my code.
index.html
<div data-role="header" class="header">
</div>
<div id="main" class="p-relative">
&...
0
votes
2
answers
780
views
Dependencies in RequireJS with Backbone, Underscore, and jQuery in 2014
I have seen a lot of questions regarding using RequireJS w/ Backbone, Underscore, and jQuery. My question is slightly different; my app works, but I don't know why.
Currently, Underscore, jQuery, ...
0
votes
1
answer
57
views
view javascript object change using BackBone
I have an object:
NAMESPACE.SOMEOBJECT.VALUE = 0
Some other foreign script owns and changes that value based on an event that I don't have access to. I know that the value is changed by different ...
-2
votes
2
answers
2k
views
Force browser to reload all my js and templates -javascript single page apps [duplicate]
I have a simple java script single page app using requirejs, underscore, jQuery for serving help material, no server pages. I am new to javascript single page apps, I want to know how to force browser ...
2
votes
1
answer
2k
views
RequireJS doesn't always load modules
20% of the time, the scripts fail loading while using RequireJS.
The additional files that I am using throu the application require, besides the JS libraries, the base.js file, which contains ...