All Questions
Tagged with requirejs underscore.js
141
questions
-1
votes
1
answer
587
views
UnderscoreJs Mixins in RequireJs module
Wrote this requireJs model for 2 underscore mixins that I need for my application.
I added it to require.config and the file loads but when I try to use either of the 2 functions I declared they are ...
0
votes
1
answer
282
views
ajaxPrefilter with Backbone
I develop a project using backbone, underscore, require .js and REST API.
I've got error Cross-Origin Request Blocked The Same Origin Policy disallows reading the remote resource at...
NOTE : I've ...
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
150
views
Requirejs text plugin content type of underscore template
I'm using require.js with the text plugin for my underscore templates. The problem is that the content type of these files will be intepreted as 'application/xml'. So I get warnings by the web browser....
0
votes
1
answer
44
views
How to understand that required layout has already been created?
In my app I have some pages that have a similar design and a home page with absolutely different design. So, my question is how to understand that required layout (for pages with similar design) has ...
2
votes
1
answer
3k
views
Module naming in RequireJS
We can use AMD compatible versions of BackboneJS and UnderscoreJS
I had a look in the AMD compatible library for both (https://github.com/amdjs/) and below is the relevant code to make them AMD ...
0
votes
1
answer
528
views
Rendering of the html page not working
I am using Backbonejs framework. Under this framework, I have created an app.js which uses Backbonejs, requirejs, underscore and text.js
I would like to load a html page onto a div. The console shows ...
4
votes
4
answers
3k
views
How to solve a conflict between browserify (Backbone based app) and require.js on the same page?
I have a backbone app up and running correctly. It's meant to be used as a widget in 3rd pages. Unfortunately, I just realised that one of these pages has already Backbone / underscore loaded.
I get ...
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">
&...
-1
votes
1
answer
63
views
Having trouble moving a existing Model file into Require.js
I have moved the project into require now I am attempting to re-write some the code using backbone and underscore. The traditional model, view , controller files exist. Below Is the start of an ...
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 ...
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, ...