Data dodania Pytanie
2017-03-11 15:03 cannot pass variables from node js to ejs page »
I am sending parameters from node js to an EJS page as... router.get("/AdminDatabase", function(req, res) { res.render('Pages/AdminDatabase', { ti...
(0) odpowiedzi
2017-03-11 12:03 Compare 2 objects and remove repeating keys between »
I am experimenting on objects, and what I am trying to achieve is to remove keys found in object1 if those keys exist in object2. Here is the example...
(4) odpowiedzi
2017-03-11 12:03 Error while sending parameters to EJS page from node js »
I am sending parameters from node js to an EJS page as... router.get("/AdminDatabase", function(req, res) { res.render('Pages/AdminDatabase', { ti...
(0) odpowiedzi
2017-03-11 04:03 How to place an EJS tag within another »
I am using EJS as my templating engine. I am passing variables from node js to ejs like... router.get("/AdminDatabase", function(req, res) { res....
(1) odpowiedzi
2017-03-10 20:03 how to test firebase functions locally on pc »
today firebase released its brand new product Cloud Functions for Firebase and I just created a hello world function and deploy it on my existing fire...
(3) odpowiedzi
2017-03-10 16:03 how to send parameters to an ejs page from node js »
I am passing the title to the EJS pages from node js as below router.get('/Home', function(req, res, next) { res.render('Pages/Home', { title: 'Ho...
(1) odpowiedzi
2017-03-10 14:03 Testing a Promise within another Promise's .then() »
I'm trying to understand how to resolve a Promise within another Promise. The steps I'm looking to achieve are the following ones: Get a User by its...
(2) odpowiedzi
2017-03-10 09:03 Why aren't constants used for events in Node.js? »
I'm new to node, but I come from an extensive background in programming. Everywhere I looked (both in tutorials and in production code I've seen aroun...
(2) odpowiedzi
2017-03-10 01:03 remove period from key name in JSON response »
So, I'm not sure what's going on here and why you'd put a period in JSON key names. The overview of what I am trying to do is pass a json response t...
(2) odpowiedzi
2017-03-09 23:03 Express trying to pull assets from wrong folder »
In my express project, when I render the product route with an id, the assets try and load from /products presumably in the public folder (products do...
(0) odpowiedzi
2017-03-09 20:03 Why isn't res.redirect actually redirecting me? »
I have a basic login controller with a form that updates the $scope of the user. When they click a button the login() function is triggered. .control...
(1) odpowiedzi
2017-03-09 16:03 NodeJs - esc is not a function »
I got a weird issues when trying to render an .ejs file at this specific lines TypeError: /home/me/nodeapp/app/views/default/page/connection.ejs:66 ...
(2) odpowiedzi
2017-03-09 15:03 How to use Hbase thrift mutateRows()? »
mutateRows(tableName, rowBatches, attributes, callback) Specifically, how do I create rowBatches argument? I know of exported module BatchMutation an...
(0) odpowiedzi
2017-03-09 15:03 Node js HBS Template system »
When using template system i am getting a error of NULL, not to sure what that means. I am using the system to retrieve data from a database. This is ...
(0) odpowiedzi
2017-03-09 09:03 variable passed to res.locals is undefined »
This code is running as a successful authentication redirect. Consider this: router.post('/', (req, res) => { yelp.search({ term: 'bars', loca...
(0) odpowiedzi
2017-03-08 23:03 Password Reset In NodeJS »
I have made a set up to update a user's password using NodeJS/Passport. I followed this great guide: http://sahatyalkabov.com/how-to-implement-passwo...
(1) odpowiedzi
2017-03-08 22:03 How to pass data (securely/discreetly) from a node module to an Angular module? »
I have a situation where i get some sensitive information (user creds /roles / personal data) in the headers at the webserver level , i need to get t...
(0) odpowiedzi
2017-03-08 20:03 Ramda > Mongoose > Data Structure Manipulation »
I have a model that looks like this var TermSchema = new Schema({ group: {type:String}, key: {type:String}, translations:[{ clientId:{type:Number,d...
(1) odpowiedzi
2017-03-08 13:03 Node.js, Hbase: Failed to connect to zookeeper »
Using hbase-rpc-client and trying to connect to Zookeper, I get the following error: Failed to connect to zookeeper. zkHosts: [my_host_name:2181] ...
(0) odpowiedzi
2017-03-08 00:03 Dynamically creating routes with Express and EJS template from JSON response »
I have a number of products and would like to dynamically create a route for each one so when I add a product to the CMS that I am doing an API call t...
(1) odpowiedzi
2017-03-07 20:03 i cannot render my template css using ejs »
i'm new at nodejs and i'm working on this project, and still learning to render ejs templates , So guys i have this template i had downloaded to work...
(1) odpowiedzi
2017-03-07 19:03 How to asynchronously write to and read from the same file in node? »
I have data coming in through a websocket. It sends binary data in 20ms chunks. I need to concatenate each of these chunks so that a backend process c...
(1) odpowiedzi
2017-03-07 18:03 ExpressJS node is it possible to call a route function from EJS? »
I am currently working on an Express app which uses EJS for the views. Each view (page) has a corresponding route with a router.get function which tak...
(0) odpowiedzi
2017-03-07 16:03 Elasticsearch - filter and sort by name with Priority exceptions »
I'm trying to filter and sort by name with Priority exceptions, which means even if the results is sorted alphabeticaly I want specific name to appear...
(1) odpowiedzi
2017-03-07 15:03 Is server side error handling necessary for angular app if angular app is properly validating the client form? »
For e.g. I have HTML like this: <form novalidate> <input type="text" name="name" required /> <button type="submit" ng-submit="...
(2) odpowiedzi
2017-03-07 12:03 Adding local script files to EJS views »
I've got a Node/Express/EJS app. It's got a folder for views and another for client files. The latter has another folder for javascript, where I have ...
(1) odpowiedzi
2017-03-07 00:03 Triggering a large file download from a fully-formed response »
The Problem I have a Node.js end-point that properly triggers an arbitrarily-large file download when accessed using the following: response.setHead...
(1) odpowiedzi
2017-03-06 17:03 Is Javascript "caching" operations? »
I was implementing the Levenshtein distance function in Javascript, and I was wondering how much time it takes to run it with Wikedia's example ("sund...
(1) odpowiedzi
2017-03-06 12:03 What is the starting point in Angular 2 before calling AppComponent.ts? »
I want to to do something at the starting point of angular 2 app but I am unable to get that point. Kindly help me if any one know about this. Thanks...
(1) odpowiedzi
2017-03-06 10:03 Combining Multiple Files with Laravel Mix »
I am currently in the process of diving into Laravel Mix and so far, whilst I fully understand what Laravel Mix is and how it works, I am trying to un...
(0) odpowiedzi
2017-03-06 08:03 How to set the path of include in EJS file »
When designing the ejs code for a nodeJs demo, I want to use "<%- include XX%>" to include other ejs file. However, I want to set dynamicly which f...
(1) odpowiedzi
2017-03-06 00:03 Understanding Laravel Mix »
Understanding Laravel Mix I am currently in the process of migrating one of my websites to Laravel in order to make it a little more maintainable in ...
(1) odpowiedzi
2017-03-05 23:03 Can I turn any Javascript function into an object? »
I'm seeing functions on node.js being turned into objects after being exported (to another javascript file), but these objects aren't being assigned a...
(2) odpowiedzi
2017-03-05 23:03 Sailsjs MongoDB Aggregation Query »
I'm trying to do an aggregation query to the db for objects with a specific id, and sum it all up and as well give me an average. My Scenario I've a...
(1) odpowiedzi
2017-03-05 19:03 Live search using socket.io »
How can I create live search using socket.io? I use RethinkDB + Node + Express + Socket.io + Redux + React, I am listening to event (it is changefeed...
(0) odpowiedzi