2
votes
1answer
18 views

Multiple responses on node.js restler call

I've created a library for sending REST requests: var rest = require('restler'); module.exports = { beginSession: function() { var options = { method: "GET", query: ...
0
votes
2answers
38 views

Origin http://localhost is not allowed by Access-Control-Allow-Origin

I'm trying to do a fetch from backbone.js to my node.js server. However, I get the following error in the console: Origin http://localhost is not allowed by Access-Control-Allow-Origin. I added the ...
0
votes
2answers
21 views

MQTT topics and uniqueness issue

I'm experimenting a bit with MQTT and I've run into a bit of weirdness. It could be due to my specific setup but I thought I'd ask away anyway. I'm using Node.JS and mqttjs as a broker. I'm also ...
0
votes
0answers
20 views

Finite time callbacks for node's event loop

I have converted the usual blocking Fibonacci number generator to run its iterations on Node's event loop tick's. Now the node server does not blocks. But the original computation may keep on going ...
0
votes
1answer
35 views

Open source service like Parse or Firebase?

Is there a open source / standalone / self hosted service like Parse or Firebase, preferably using Node.js. I really like the concept of a systems that manages data synchronization between all my apps ...
1
vote
2answers
28 views

Module system that works on Node.js and on the browser?

You are programming a lib X that depends on lib Y. You want that library to work on node.js and on the browser. On node.js, you'd use require('Y'). On the browser, you could use require.js. What's the ...
-3
votes
0answers
37 views

How to pass variable form php to nodejs? [closed]

I'm trying to do something about combine web service . I need to pass some variable from my php page to nodejs server (i.e account info.) , I don't know how to do it. can anyone give me some hint to ...
0
votes
1answer
19 views

express app throwing error while displaying dynamic chart using flot in the jade client

While trying to display the realtime data using flot chart, I am getting the following error in the client code Uncaught Invalid dimensions for plot, width = 1584, height = 0 Cant figure out why ...
1
vote
2answers
26 views

Resolving the variables in options nodejs

Hi i make a client call to a hhtp get webservice using the http module I pass options as a input to the function.Below is the code snippet var headerKey="ddd" options = { host: ...
0
votes
0answers
22 views

Nodejs, SignalR, Websocket or Comet?

I have been planning to learning and follow some push techniques. So I found all the above for the purpose. I am asp.net professional. Now SignalR can be used here and seems the strong candidate for ...
-4
votes
0answers
28 views

how to bind html table value to text box without page postback in node.js [closed]

I want to pass my html table value to text box without getting page refrace. On click of edit button I want to pass all table row data to bind the text box without the page get post back..
0
votes
1answer
23 views

How to get name of file from writeStream?

Here is what I want to do: stream = fs.WriteStream('crap.txt',{flags:'w'}; // more code response.on('close',function() { // is the below line possible? fs.stat(stream.name, ...
-3
votes
2answers
24 views

Content Filtering of a web page similar to safari reader [closed]

I am currently developing in both php and js node, so this is why this question is these section and any answers with regards to these languages would be great I am looking for an API that could help ...
1
vote
0answers
26 views

Node.JS EventEmitter Listener Must be a Function

I am getting an error when attempting to setup listeners within a function. I have reviewed other code that this works for, but can't seem to get it to work for my purposes. This is a simplified ...
0
votes
2answers
25 views

function call is passed over before having the chance to set important data

So I have this function in node.js that gets the external IP by grabbing it from https://icanhazip.com/ (handy website, check it out), but when the request is called it isn't allowed to finish before ...
7
votes
8answers
100 views

Javascript: Function Chaining

solution: nope. you can't do it. chain commands with && and be done with it. tl;dr: in random.function("blah").check(), how do I make it ignore check() if function("blah") returns false? Or ...
0
votes
0answers
40 views

MongoDB: Sorting by date treats null field as earlier date

Mongoose schema includes this: { dueDate: { type: Date, required: false } } My goal is to fetch docs sorted by dueDate with the soonest date at the top, followed by the rest with no dueDate. My ...
0
votes
1answer
22 views

Getting a reference collections in mongoose

My application has three collections Users, Channels and Feeds in MongoDB Users can be registered for Channels. so Channel will have bunch of reference ID of user who has registered for that Channel. ...
0
votes
1answer
68 views

Dynamically assign ID

I am using nodejs and expressjs. I load a list from a database. Selecting any of the list elements bring up an overlay with to EDIT and DELETE the selected item. I can not figure out how to send the ...
0
votes
0answers
27 views

Sending arguments via Soap in Node.js using node-soap

I am just getting started with NodeJS and I digging into talking to a SOAP service using milewise's node-soap. I am using a basic email address validation SOAP API as my test case. I don't seem to ...
0
votes
2answers
39 views

functions in ejs

What I'd like to have is something like this: app.js (node process, includes etc excluded for brevity but using ejs as rendering engine): app.get('/', function(req, res){ var ejsVariables = { ...
0
votes
1answer
24 views

Jade - Accessing a variable passed to it

So I have a user stored in session when they log in on my Node.js application. I have admins and default users, if I output #{session.user.role} in the Jade template, I get default or admin appear. ...
0
votes
1answer
29 views

How to pull a unknown URL out of a String

I'm writing a Node/Express app and I have a text string in a JSON object that I need to pull a URL out of. The URL is different every time, and the string itself has two very similar URL's, and I only ...
0
votes
2answers
35 views

Running Node and Apache Side by Side

I am working on a project which allows users to monitor energy consumption. The main dashboard page is a web app which is pretty neat and makes extensive use of javascript and ajax. The server ...
0
votes
2answers
38 views

Running Page Specific Javascript in node.js

I am working on a project which allows users to monitor energy consumption. The main dashboard page is a web app which is pretty neat and makes extensive use of javascript and ajax. The server ...
0
votes
1answer
49 views

Creating a single page web app as part of a website

I am working on a project which allows users to monitor energy consumption. The main dashboard page is a web app which is pretty neat and makes extensive use of javascript and ajax. The server ...
1
vote
1answer
21 views

Setup page on first login, express.js

I'm using Passport.js to authorize user into my express.js app. I want to show setup page when user logins first time. Can I do this with Passport?
0
votes
0answers
19 views

Passport.js get sessions in callback

I want to move my express app from everyauth to Passport.js. Workflow: I'm showing setup page if user logins into app first time. In everyauth I get session inside: everyauth.twitter ...
0
votes
1answer
23 views

Oauth login and registration with custom username, express.js

I use node.js+express.js stack, users can reigster/login with twitter and facebook, and also can register with my native registration form. I use everyauth to handle with Twee and Fb. The question ...
0
votes
1answer
16 views

heredoc on nodejs

Trying to use the Heredoc Method described here: http://www.developfortheweb.com/2009/03/multi-line-strings-in-javascript/ var string = (<r><![CDATA[ The text string goes here. Since ...

1 2 3 4 5 202
15 30 50 per page