Data dodania Pytanie
2017-02-08 16:02 Execute second function after first function - REST »
If the first REST function execute with sucess, the second it will be execute with the parameters of the first function, in the case return: sessionid...
(1) odpowiedzi
2017-02-08 15:02 Is there an official list for Handlebars reserved words? »
After struggling with a template var named {{engine.x.y}}, which was "silently" showing nothing until I changed it for something else such as {{_engin...
(1) odpowiedzi
2017-02-08 07:02 How can we register test company on Facebook to enable in app purchases? »
I want to integrate Facebook payments in my app, but it requires detailed company information with all the bank information so I am wondering is there...
(0) odpowiedzi
2017-02-08 00:02 NodeJS how to set csrf token correctly? »
This is a continuation of this question: Rest-auth still reports the error of "CSRF cookie not set", but I've set the csrf The code I u...
(1) odpowiedzi
2017-02-07 23:02 Get cordova package name from javascript hook »
I am writing a cordova plugin with a node hook to run after_prepare . This is for Android only. From within this hook I need to get the cordova pack...
(1) odpowiedzi
2017-02-07 15:02 Mocha throws "Resolution method is overspecified" »
I'm trying to write a simple test - describe("My test", function(){ it("Succeed", function*(done){ yield testFunc(); done() }) }) functi...
(2) odpowiedzi
2017-02-07 05:02 Nodejs/Express having problems loading CSS with ejs »
I am working on a site for my school and everything has been working great locally. Now we had to move our site to Google cloud but run into issues wh...
(0) odpowiedzi
2017-02-07 03:02 How can I use readline synchronously? »
I'm simply trying to wait for a user to enter a password and then use it before moving on the rest of my code. The error is Cannot read property 'then...
(2) odpowiedzi
2017-02-07 01:02 Trouble returning value with app.locals »
I'm trying to add a class to a div tag using a function I created which simply returns true or false and then uses that to decide what class to add. E...
(0) odpowiedzi
2017-02-06 23:02 How to view request sent from node.js to server? »
Regarding to this question: Transfer / pass cookies from one request to another in nodejs/protractor I got another one. How could I view complete req...
(1) odpowiedzi
2017-02-06 20:02 Example of browserify implementation with Node.JS, Express, and EJS »
I'm having trouble getting browserify to work on my web app. I browserify in the terminal and it creates the bundle.js file. I put it in my public/j...
(2) odpowiedzi
2017-02-06 17:02 Browser to S3 file transfer via Node »
Background I want to create an input on my React/Redux SPA that takes in a file (attachment) which will then be stored in my Amazon S3 bucket. I ha...
(2) odpowiedzi
2017-02-06 15:02 Where does json web token save the data? »
I have a node-app using json web token: var jwt = require('jsonwebtoken'); If a login succedes then this library creates a token this way: var payl...
(4) odpowiedzi
2017-02-06 15:02 How to get the item id inside a foreach loop? »
I have a this problem for a long time and always solved it on a really bad way. When I have a loop that goes through the selected items (in this case...
(0) odpowiedzi
2017-02-05 23:02 how to build json array dynamically in javascript »
I receive a json object with some number of quick reply elements from wit.ai, like this: "msg": "So glad to have you back. What do you want me...
(1) odpowiedzi
2017-02-05 20:02 why rendeing svg tag to an ejs file not recognized »
I try to use d3-node to make a chart in server side and try to render the new chart to ejs with following code: <%= svgChart %> when I use...
(0) odpowiedzi
2017-02-05 16:02 JavaScript - Adding an object to the end of an array through a input field »
I am trying to dynamically add an object with values from an input field to the end of an array using JavaScript. The only catch is that I'm trying to...
(4) odpowiedzi
2017-02-05 15:02 Array.prototype.map(callback, thisArg), second argument ignored »
I'm using Node.js to write a little game which I want to be available in two different languages. In order to show the translated lists of the differ...
(1) odpowiedzi
2017-02-05 09:02 Drop down list and values »
I having a problem in setting the values of dropdown list. Here I am pasting my code. HTML Code: <form ng-submit="save()"> <table style=" t...
(1) odpowiedzi
2017-02-04 22:02 Creating a chain of Promises »
I'm having trouble understanding how to adapt single Promises to a chain of Promises that resolves once both API calls have returned. How would one ...
(2) odpowiedzi
2017-02-04 20:02 Open a new window to display a html file using a menu click - Electron »
I'm new to Electron and JavaScript. I'm building an Electron app. I know how to open a URL in a browser via clicking an item in native menu(by studyin...
(1) odpowiedzi
2017-02-04 16:02 Get the size of a file, with uploading and POST request »
Please note: I want to do this with vanilla Node. I want to upload a file with the input type="file" HTML tag, and in the same form element hit a sub...
(1) odpowiedzi
2017-02-04 11:02 Date now + 1 month in nodejs »
this is my code in ejs file : <select class="form-control track-change input-lg" data-track="deadline" name="Deadline" id="Deadline" placeholder="...
(1) odpowiedzi
2017-02-03 23:02 Why does my url contains "!" when using angular? »
I just started with MEAN stack and i'm following some TUTs. I'm using the npm-views from Angular and trying to redirect an html a tag to another html...
(1) odpowiedzi
2017-02-03 19:02 Execution order of ejs within a for loop »
Consider this: for (let i = 0; i <= 5; i++) { console.log("before",i); res.render("index", { message: i }); console.log(...
(0) odpowiedzi
2017-02-03 16:02 How to receive Redis expire events with node? »
I want to listen the expire events from Redis. I've configured on my redis.conf the notify-keyspace-events "AKE" and this is my code on node: const ...
(1) odpowiedzi
2017-02-03 14:02 npm3 install breaks the flat structure if installing module from local folder »
I have the following dependency tree: module_a@1.9.15 module_b@1.0.22 module_c@1.1.2 module_b@1.0.22 (The important part is that m...
(0) odpowiedzi
2017-02-02 21:02 Ajax req.body result is {} »
I got the following jquery code: $('.enb').click(function(){ var isEnable = $(this).val(); alert(isEnable); $.ajax({ type: 'POS...
(0) odpowiedzi
2017-02-02 13:02 CORS - Facebook - Passport »
I'm trying to implement OAUTH login via Facebook in my Nodejs/Angular/Express/Passport app but i'm struggeling with it. I still get the CORS error: ...
(2) odpowiedzi
2017-02-02 12:02 NodeJS: Auto-catch errors in Promise and call reject »
I recently found myself in a situation very difficult to debug. Imagine the following very simple situation: function somePromise() { return new ...
(1) odpowiedzi
2017-02-02 07:02 How to mock middleware in Express to skip authentication for unit test? »
I have the following in Express //index.js var service = require('./subscription.service'); var auth = require('../auth/auth.service'); var rout...
(1) odpowiedzi
2017-02-02 05:02 How to skip promise in a chain »
I am working in a nodejs project and want to skip promise in a chain. Below is my code. In the first promise block, it will resolve a value {success: ...
(2) odpowiedzi
2017-02-01 19:02 How to use a ternary operator to add a class to an HTML element in ejs »
I am new to using ejs. Have a menu an I want to highlight the current menu item. I have tried this: <li class=<% currentMenu == 'dashboard' ? '...
(1) odpowiedzi
2017-02-01 18:02 insert conditional statements in readable streams of process.stdin »
Well, I'm trying to pass a simple if statement to a process.stdin readable stream in NodeJS. But it doesn't seem working. Here's the code : process.s...
(1) odpowiedzi
2017-02-01 17:02 Debug server-side code with readline module in node.js »
I'm new to Javascript and Node.js. Coming from C# I want to debug something like this with breakpoints set in Debugging-console: var name = Console....
(2) odpowiedzi