Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.

learn more… | top users | synonyms (2)

0
votes
1answer
8 views

How can I render content in my Jade template using functions in express?

I've got a working user register/login page, the only thing left is making content based on whether the user is logged in or not. After reading I came up with this: app.use(function(req, res, next) { ...
0
votes
1answer
27 views

how to fetch value from JSON object?

I want to delete data from the table and database using multiple select. but it only deletes the first row selected. I also use the Firebug to fetch the req.body.id for the WHERE condition of my sql ...
0
votes
1answer
15 views

Alternatives to HTTP chunking for persistent connections?

According to the W3C specification on Server-Sent Events: Authors are also cautioned that HTTP chunking can have unexpected negative effects on the reliability of this protocol. Where possible, ...
1
vote
1answer
15 views

Allow CORS REST request to an express/node.js app

I am new to node.js/express. I saw this post ( Allow CORS REST request to a Express/Node.js application on Heroku), but the proposed solution did not work. I am just making a call to mapquest api to ...
1
vote
1answer
19 views

nodejs: how to communicate between two processes on two servers

i am working on NodeJs, my question is: process A runs on computer A, and process B runs on computer B, now i want to broadcast a message to both of them, how can i make it?
1
vote
1answer
16 views

Node.js and Apache … How do I share POST data between the two?

say I have a Login form -> <form action="$_SERVER["PHP_SELF"]" method="POST"> <input...> <input...> </form> When using PHP with Apache, I would get the POST data by this ...
0
votes
0answers
8 views

Forbidden by CSRF on my registration form, not sure why

I have setup CSRF on my Express v3 app, and I have it like this: app.use(express.session({ secret: "gdagadgagd", cookie: { httpOnly: true, path : '/', maxAge: 1000*60*60*24*30*12 } ...
0
votes
1answer
17 views

How do I access node.js' filesystem from meteor?

I'm really new to meteor and node.js and I think it's really awesome! So the issue I am having is that I cannot access node's filesystem module from meteor. On stackoverflow, other users have ...
0
votes
0answers
6 views

Node.js cluster + collective

I have submitted the issue to the github repo, so as to track it there! I'm running a clustered app that could be on a machine with N cores. Let's say I am running 2 of the app instances locally for ...
2
votes
0answers
7 views

How to get grunt.js to start an express app for testing

My current situation is that I use grunt to make a production version of my express app (minimize and merge all the js/css, copy all the files in place) and then I have to run a script which sets an ...
1
vote
1answer
24 views

node.js: program either exits unexpectedly or just hangs

I wrote a module in node.js that performs some network operation. I wrote a small script that uses this module (the variable check below). It looks like this: check(obj, function (err, results) { ...
0
votes
0answers
18 views

Creating an express project first run gives errors

I installed express globally. I have created a new project called helloExpress like this: express helloExpress -c less Installed all dependencies: cd helloExpress sudo npm install Run the app: ...
0
votes
1answer
17 views

google maps nodejs

Is it allowed to use google maps in the server side without actually displaying the map? I've searched around and it seems it is not but I cans see there are nodeJs plugins for Google Maps. I would ...
1
vote
1answer
20 views

What's the most efficient way to apply a function to all objects in a collection in MongoDB?

Suppose I want to calculate the "popularity" field for all objects in my collection. It depends on the difference from the current time to the field "submitTime" and the numbers in the field "votes". ...
0
votes
0answers
14 views

Combine and minify js file using nodejs dynamically

I am new to nodejs and grunt. I was going through the less-middleware and was very impressed with the way it automatically creates the css files. I now want the same for js files also. Let me ...

1 2 3 4 5 1365
15 30 50 per page