Tagged Questions
0
votes
0answers
11 views
I want to post comments from my app to facebook
In my app the user have to comment on a particular movie trailer video. There I provide 2 checkboxes:
Post on Facebook
Post on Twitter
I am using JavaScript and jQuery in frontEnd and Node.js at ...
0
votes
0answers
7 views
Make Cordova FileTransfer send authenticated user data when uploading files
I use PassportJS to authenticate users in my Cordova-wrapped web app on iOS. I usually get user id from req.user.meta.id variable. It seems that this data is not sent when I try to upload files with ...
1
vote
1answer
18 views
NodeJS working behind Nginx
I have in the same server NodeJS and Nginx running at a time. Nginx takes the requests from "www.example.com" and i want NodeJS to take requests from "api.example.com". I almost got it, i configured ...
0
votes
1answer
28 views
Do I need to have the .net Framework installed in order to run c#/c code through NodeJS?
I have a simple demand to run c#/c++ code through NodeJS?
I have concluded that (edgejs library) allows us to run .net code in JavaScript so my question is
do I need to have the .net framework ...
25
votes
1answer
357 views
Why {} + {} is NaN only on the client side? Why not in NodeJS?
While [] + [] is an empty string, [] + {} is "[object Object]", {} + [] is 0, why {} + {} is NaN?
> {} + {}
NaN
My question isn't why ({} + {}).toString() is "[object Object][object Object]" ...
0
votes
0answers
18 views
NodeJS Dinamically Load server instancess for a socket using socket.io
i have the next files structure:
app.js - Server
data
|__ config.txt - configuration
|__ logs
srv
|__ ticket.js - ticket server
|__ game.js - game server
app.js read ...
0
votes
1answer
26 views
MongoDB: Adding an array into an existing array
I'm trying to add an "Instructors" array into an already existing "Camps" array.
The hierarchical structure looks something like this:
owner = {
email : '[email protected]',
password : ...
0
votes
1answer
18 views
Node.js client-sessions not creating req.session
I was having issues with node-client-sessions, so I tried using this sample application from https://github.com/fmarier/node-client-sessions-sample. However, even with this basic app I get TypeError: ...
1
vote
0answers
24 views
Reading from files lazily in node.js
I've tried this simple code using node-lazy:
var productStream = function (readstream) {
return new Lazy(readstream)
.lines.forEach(function (line) {
console.log(count++);
if (count ...
0
votes
1answer
16 views
Resource based routing module used in a Node.js REST API service, or other useful modules for this type of service
We are building a service that exposes a REST Api to the clients and we are using jugglingdb to create the models and express as the server.. I was wondering if there are any modules that are useful ...
0
votes
0answers
23 views
Issue with decoding characters in API response
Having some trouble handling values coming from an external API service with Node.
http.get(
endpoint,
function(res)
{
if (res.statusCode != 200)
{
return ...
0
votes
1answer
26 views
HOWTO: Produce mongoDB query string for the fields dynamically from a javascript app
I have a Node.js app with MongoDB
My customers collection schema is like this:
{
'_id' : 1234341264876876143 ,
'profile':{
'name': 'bob',
'email': '[email protected]',
...
0
votes
2answers
23 views
How to detect Reference Errors in Javascript where Undefined doesn't work?
typeof(nonexistingobj)
returns 'undefined' BUT
typeof(nonexistingobj.nonexistentproperty)
does not generate 'undefined' as I was expecting, but something called a Reference Error - how do I ...
1
vote
3answers
61 views
Function sees only three arguments [duplicate]
This is a simplified code that runs on Node.js crawler and it gets all data.
But how do I insert inside the "callback": function value of var "i" from cycle for(var i=0... When I'm adding name: ...
0
votes
1answer
19 views
Uncaught ReferenceError: io is not defined [closed]
I know this is an error talked about a lot in here. But after a few posts found via google it still didn't solve my problem.
I get the above error when trying to include the io javascript in my ...