1
vote
3answers
19 views

How to aggregate array of json objects from forEach function?

I want to render array of stories from all projects in node.js. How to do that? app.get('/stories', function(request, response) { var projects_ids = [1,2]; project_ids.forEach(function(id) { ...
0
votes
0answers
5 views

Livescript, How to end a unnested callback?

Reffering to: http://livescript.net Unnested callbacks and parentheses free chaining: LiveScript <-! $ 'h1' .on 'click' alert 'boom!' JavaScript $('h1').on('click', function(){ ...
0
votes
0answers
19 views

JavaScript - Loop through an array with Schema function

I have a list of Team ID's which I have stored in the array teamIds. I also have a function findByKey in my Team mongoose schema which finds a Team based on its key. As you can see from the code I ...
2
votes
3answers
32 views

Function Arguments object in Node.js is different to Chrome's JavaScript

I'm confused with Node.js function arguments object. Suppose i have following code: function x() { return arguments; } console.log(x(1, 2, 3)); In chrome developer tools it returns as an Array: ...
0
votes
1answer
18 views

ExpressJS app generator not recognizing its flags

I can't run the express app generator with flags. See example below. I run express --version and it interpretes the --version part as a target directory and creates the app there. In Windows XP SP3. ...
0
votes
1answer
26 views

How in node.js send response with array of json objects?

I want to return array of finished pivotal stories using pivotal-node module for node.js. app.get('/delivered_stories', function(request, response) { pivotal.useToken("my_token"); ...
0
votes
1answer
48 views

Error: Can't access property href

I am using NODE JS module with which I am creating a HTTP server. Server's response is a page containing JavaScript which embed a webpage in . Here is response code: <html> <head> ...
0
votes
3answers
25 views

NodeJs catch unhandled error happens in async methods

Originally I would like to ask a question about how to create robuts web server based on Node.js. However, that could be a very large and ambiguous question. So I break it to small and concrete ...
0
votes
1answer
32 views

Why won't req.session set with node.js

I can't seem to get set anything for req.session I'm trying to store oauth token and the secret into a session so i can check them after the authorize callback. Here is my code var express = ...
0
votes
1answer
20 views

Unexpected token on response.writeHead

When running the following code in Node.JS it produces some error but I cant understand why var http = require("http"), fs = require("fs"); function onRequest(request, response){ ...
0
votes
0answers
19 views

Error:Domains, protocols and ports must match <br/> Error: “Object [object global] do not have method 'getElementsByTagName'”

I am using NODE JS module with which I am creating a HTTP server. Server's response is a page containing JavaScript which embed a webpage in <iframe> and within this <iframe> I am ...
1
vote
3answers
48 views

List built in Javascript standard object methods

Is there a way to list all javascript standard object method? I mean I'm trying to get all the built in methods of String so I was thinking and I did tried doing this: for( var method in String ){ ...
0
votes
0answers
17 views

Getting a custom popcornjs plugin into butter

So I have written a custom popcornjs pluggin, and it works great on its own with a simple front end popcorn implementation. But I really want to integrate it into butter, the popcorn maker tool. I ...
0
votes
1answer
35 views

Architecture recommendations & guidelines for a Node.js web application? [closed]

I'm eager to begin a side project for learning purposes, and I'm seeking some guidance on which technologies/frameworks/libraries to use, and how to structure the application, at least at a high ...
-1
votes
2answers
32 views

generate URL on node.js server [closed]

I'm looking for a professional technique to generate unique URL addresses. I created a node.js server that should give out these URLs to accessing clients. How can I provide the URLs? // user is ...

1 2 3 4 5 389
15 30 50 per page