Tagged Questions
1
vote
1answer
14 views
Validation in Backbone is not validating?
Hey so I know backbone changed there validation and I am trying to make it work? Anyone notice what went wrong. Here is the JSfiddle link that validates as well. Do not understand why is not ...
0
votes
1answer
16 views
Call direct route without hash from Backbone
I'm probably tackling this the wrong way but bear with me:
in my server.js I got this
tweetThisThing = require('./lib/kustomtwitter'),
app.get('/tweet/:msg', function(req, res){
var tweet = ...
1
vote
1answer
24 views
Import contacts directly to device from web?
This web application designed for mobile devices is written in javascript/backbone with node.js/postgres on the server side. On the client side, I have a function that takes the data from a contact ...
1
vote
1answer
35 views
Getting a type error on my Backbone file?
so I will include the error along with my main.js file, if anyone can tell me what it is refering to? I think it is the templates but I cannot figure out what I am doing wrong.
Main.js file:
...
1
vote
2answers
51 views
Collection and view not working in backbone script?
Hey guys I am currently following a tutorial and learning backbone, but for some reason I cannot get anything besides the Backbone model to work. Everything underneath it such as the collection or ...
0
votes
1answer
58 views
What is <%= in jade?
I am going through a tutorial that uses html for its view engine, I am working on jade and just wanted to know what this would become in a jade page.
<%=firstName%>
I tried this but it tells ...
0
votes
0answers
19 views
Create jqueryMobile page dynamically based on the url
I am creating an application to get some experience in jQuery Mobile and backbone. I have made a "restful" API with node.js that handles the data I need. It works fine with all my static pages I made ...
0
votes
2answers
67 views
“_ is not defined” Underscore error in HTML file
this html file from a node.js project which was originally a jade signup file from the Drywall.js project by jedireza. Its location on GitHub is:
...
0
votes
1answer
38 views
How to use helpers in a client-side Jade template using Backbone.js?
I'd like to use momentjs (more generally, any other function) as helper in a Jade template, both for the server and the client. On the server (Express.js 3.x), I'm adding it to app.locals, and it ...
0
votes
1answer
34 views
nodejs + ejs for if express returns a unexpected catch
im sure this is silly, but i cant get it to work for the life of me, i just want to do a simple for statement with an if inside on ejs, but it keeps returning a unexpected catch event in express.
to ...
0
votes
1answer
29 views
How to reproduce Backbonejs Models & Collections in node.js server side
I'm a newbie with nodejs but I am excited about the possibility of a common language and idiom between client and server.
Does anyone know of a nodejs framework that provides the same OO idiom and ...
0
votes
1answer
16 views
Image tag flickers then disappears - backbonejs
I am experiencing a strange behavior with backbone view,
On my view template, the image tag flickers and then disappears immediately when the view is rendered, no image is then displayed
this is my ...
-1
votes
1answer
38 views
How to “require” text files with browserify?
I am using browserify (using browserify-middleware)
how can I require simple text files, something like:
var myTmpl = require("myTmpl.txt");
I cheked stringify plugin for browserify but the code in ...
3
votes
1answer
61 views
Backbone User Model with multiple update paths
I have built a simple user model in Backbone
define([
'underscore',
'backbone'
], function(_, Backbone) {
var UserModel = Backbone.Model.extend({
urlRoot: '/api/user',
...
1
vote
1answer
31 views
Possible scoping issue
A possible node.js/backbone.js/socket.io scoping issue I can't wrap my head around.
(snippet from) server.js
var app = express();
var server = http.createServer(app);
io = io.listen(server);
...