Data dodania Pytanie
2017-03-05 16:03 Printing mysql data to EJS document with foreign keys »
Link to github project I'm trying to get answers to quiz questions from mysql and print to a form using EJS templating in node/express application. I...
(1) odpowiedzi
2017-03-05 15:03 I want to make href tag dynamic and value will be populated and i have ejs template »
Sample code snippet: index.ejs <p><a href="<%=link%>" class="btn btn-primary" role="button">Download</a></p> a...
(2) odpowiedzi
2017-03-05 07:03 Ejs2 include(variable) not working »
Ejs2 docs say it is possible to do: exports.get = function(req, res) { res.render('layouts/home', { page: '../pages/' + 'home' }); ...
(0) odpowiedzi
2017-03-04 21:03 How to get the actual bytes of a javascript 64bit float »
I have been trying to work out how to use typed array's in JavaScript but something just isn't clicking yet for me. I am not understand how to read/wr...
(2) odpowiedzi
2017-03-04 14:03 Unable to verify the first certificate - ionic app upload error »
I have developed ionic app and trying to upload it to ionic cloud. I have checked my username and password. Whenever I run ionic upload I get an error...
(0) odpowiedzi
2017-03-04 11:03 How to determine that a JavaScript function is native (without testing '[native code]') »
I would like to know if there is a way to differentiate a JavaScript script function (function(){}) from a JavaScript native function (like Math.cos)....
(2) odpowiedzi
2017-03-04 09:03 Get JSON data from ejs view to controller »
Here is my server.js, const express = require("express"); var app = express(); var cons = require('consolidate'); const bodyParser = require('body-pa...
(1) odpowiedzi
2017-03-04 07:03 strange ejs syntax error »
I am new to node.js and follow a blog to practice.But when i come to render a view as written in blog. I met some strange problems. I take ejs as vi...
(1) odpowiedzi
2017-03-03 23:03 Issue with AJAX and csurf! Invalid csrf token »
Trying to send data with ajax, but when i press "send" I have an error in my browser console : (and no data is sent) So I tried different methods f...
(0) odpowiedzi
2017-03-03 17:03 Node JS, Static Function / Variable Best Practice »
I have a Java background, I am trying to build a Node JS lib. I have a class in Java like this; public class MyClass { static List<String>...
(1) odpowiedzi
2017-03-03 14:03 Having problems using nested for loops »
I am having troubles figuring this one out. I want to compare the content from 2 arrays with each other. If they are === I want to run the if statemen...
(1) odpowiedzi
2017-03-03 12:03 Why Mongoose sort is slower than native javascript sort? »
I'm using Node.js 6.10.0 and Mongoose 4.8.5. Actually I'm trying to find the nearest coordinates from a coordinate and with a certain datetime. I have...
(1) odpowiedzi
2017-03-03 07:03 Typeof arguments object in TypeScript »
I basically have this: function foo(a,b,c,d,e){ // literally pass the arguments object into the pragmatik.parse method // the purpose of pragmatik...
(1) odpowiedzi
2017-03-02 13:03 mysql - how to display error instead of throw err in nodejs »
I have put some constraints in my mysql table and thus when a duplicate value is entered, it throws an error and the server shuts down. What I want in...
(1) odpowiedzi
2017-03-02 12:03 Error while installing aerospike-node client on ubuntu 16.04 »
I am trying to install aerospike-node client with npm on Ubuntu. npm install aerospike While installing I am getting ERROR like SOLINK_MODULE(targ...
(1) odpowiedzi
2017-03-02 07:03 how to get value selected in dropdown menu from ejs template to server side node »
What I want to do is to let the user select monthyear i.e something like feb2017 from a drop down menu and then get the value selected in to server si...
(1) odpowiedzi
2017-03-02 06:03 Node.js EJS express-validator for each »
All right all. I'm going absolutely nuts trying to get this done with ejs. handlebars. no problem. but forcing to learn ejs. What I am trying to do ...
(1) odpowiedzi
2017-03-02 05:03 Very fast endless loop without blocking I/O »
Is there a faster alternative to window.requestAnimationFrame() for endless loops that don't block I/O? What I'm doing in the loop isn't related to a...
(2) odpowiedzi
2017-03-02 01:03 How can a function in a javascript hash call another one in the same hash safely »
Here is a javascript/ES6 method returning a hash consisting of two methods... writeA and _write. We want to call writeA from outside of the hash, and ...
(1) odpowiedzi
2017-03-01 21:03 EJS doesn't scape »
I want to fill a table with EJS and I have this <% User.find(function(err, users){ if (err){res.send(err);} if (us...
(1) odpowiedzi
2017-03-01 21:03 Populate data from mysql to ejs »
Link to github https://github.com/AEkman/Quiz I'm trying to get data from mysql database and print to a html table using EJS. This is my function ca...
(2) odpowiedzi
2017-03-01 14:03 How to validate csrf token at server side(nodeJs) sent via ajax call »
In my nodeJs application i'm using quite a few Ajax calls and want to guard those call against the CSRF attacks. I am using csurf for this and it wor...
(0) odpowiedzi
2017-03-01 09:03 I collect a lot of data real time through SocketIO events. Should I validate JWT token for every SocketIO event? »
So, I need to collect a lot of data, say 3 units of data every second, by a lot of people. I named the event that collects this data as 'capture'. I ...
(1) odpowiedzi
2017-03-01 08:03 Display of data on view from route.js »
// This is my router.js router.get('/restful', function(req, res){ console.log("before"); User.show_deatils(req, res, function(err...
(1) odpowiedzi
2017-03-01 06:03 Multiple require() from the same library in the same module »
I'm looking at the sources of the @slack/client npm package for NodeJs and see that right at the top they have this: var forEach = require('lodash')....
(0) odpowiedzi
2017-03-01 02:03 Concurrency issues when removing dependent documents with mongoose middlewares »
Suppose we have a simple application where users can create products and comment them. The schema for products and comments could be: var productSche...
(2) odpowiedzi
2017-02-28 13:02 Undefinded error »
route.js router.get('/restful', function(req, res){ console.log("before"); User.show_deatils(req, res, function(err, resultArray){ if(!err) { ...
(2) odpowiedzi
2017-02-28 11:02 Synchronize Data across multiple occasionally-connected-clients using EventSourcing (NodeJS, MongoDB, JSON) »
I'm facing a problem implementing data-synchronization between a server and multiple clients. I read about Event Sourcing and I would like to use it t...
(2) odpowiedzi
2017-02-28 08:02 Shutting down VERY busy production node »
I have a very, very busy node application on a production server. The app deals with a real-time chat (using websockets) as well as e-commerce payment...
(1) odpowiedzi
2017-02-28 07:02 is it possible to do multiple facebook messenger bot in singe node.js server »
I want 5 messenger bots and it should be running in one node server.Right now am using 5 different server for 5 messenger bots.how will i give logic s...
(1) odpowiedzi
2017-02-28 07:02 Pass value from a function in node.js »
//This is my models module.exports.show_deatils=function(req,res,callback){ var resultArray=[]; mongo.connect(url,function(err,db){ ...
(2) odpowiedzi
2017-02-28 05:02 Does streaming an http response block nodejs? »
I'm trying to understand the limits of nodejs when dishing lots of content under load. Specifically I want to know if streaming a lengthy response to ...
(1) odpowiedzi
2017-02-27 15:02 Snake Through Javascript Array »
this is probably a simple answer, but I am a hobbiest and this is really breaking my brain. I'm trying to assign values to variables by snaking throug...
(3) odpowiedzi
2017-02-27 13:02 how to pass function value »
I have created models called (user.js) module.exports.show_deatils = function(req,res,callback){ var resultArray=[]; mongo.connect...
(2) odpowiedzi
2017-02-27 12:02 How to save the session »
I have created a function here : router.get('/restful',function(req,res,next){ var resultArray=[]; mongo.connect(url,function(err,db){ asser...
(1) odpowiedzi