Data dodania Pytanie
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 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 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-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-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 14:03 EJS getting specific data from MySQL »
Github project link So, I am making a Quiz creation application using EJS as templating engine with jQuery, Bootstrap and MySql. I'm trying to loop ...
(1) 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 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-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 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-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 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-02-28 21:02 converter code ejs to jade »
I have code in ejs of http://www.digitalaholic.com/nodejs-pagination/, and want converter to .jade, i attempt but is not sufficient, not working. i wo...
(1) 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 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-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
2017-02-27 07:02 Make a Button work in an Express.js app »
I am trying to add a button to a simple webapp, however i do not know how to make it work. I am using Node,express,ejs. I have two major issues: Wha...
(3) odpowiedzi
2017-02-26 03:02 how to use ejs / angular array filtering on bulk elements »
I'm having trouble using dynamic filters using ejs templating engine. I actually don't know if that's possible. I'm using angular on the front end and...
(0) odpowiedzi
2017-02-25 21:02 Express-flash to angularjs »
I made a webpage with EJS and Node.js but I want to convert EJS to AngularJS. I am using passport-steam to get a users steam id. I will check if this ...
(0) odpowiedzi
2017-02-24 13:02 ExpressJs: using Navbar on views »
I'm using ExpressJS and EJS as my Views. in my navbar I have links that need to have a class="active" when the user is on that current page. put if ...
(2) odpowiedzi
2017-02-24 10:02 my route do not work ,use express and ejs »
i want to click link to solution page,but my route don't work,what's wrong? app.js var express = require('express'); var path = require('path'); va...
(1) odpowiedzi
2017-02-24 02:02 How do I find the index of submitted input while using .map »
I am using the Array.prototype.map() method, to display an array into a table. This table also contains an input field and submit button for every ins...
(2) odpowiedzi
2017-02-23 19:02 How to send dynamic html emails with ejs and nodemailer »
I'm trying to use ejs templates with nodemailer to send dynamic HTML emails with data from mongoDB. I can't get the data provided to the ejs template ...
(0) odpowiedzi
2017-02-22 13:02 .ejs file not rendering if it contains else statements »
I'm making a small Node web app using Express. But I get errors if my ejs files contain else statements. If that's not clear, here's an MWE: pages/te...
(2) odpowiedzi
2017-02-21 16:02 Test rendering views with EJS in Mocha »
I have finished building a CRUD application with 20 tests passing. I am using EJS to render the views and now I am having a problem with my tests. A...
(0) odpowiedzi
2017-02-21 10:02 passing passport failure messages in our view.ejs »
//This is our user.js (I am using passport here) passport.use(new LocalStrategy( function (username, password, done) { User.getUserbyUse...
(0) odpowiedzi
2017-02-21 03:02 How to apply a color to <td> tag in .ejs file in nodeJS »
I want to know how to apply a color in .ejs file. Here is the code. <% resultList.forEach(function(item, index){ %> <tr> ...
(1) odpowiedzi
2017-02-20 16:02 How to delete uploaded image in Javascript? »
I'm working on my first web app. It allows users to post events happening in the area, similar to eventbrite. I am using NodeJS, Express, Mongo. I cr...
(2) odpowiedzi
2017-02-20 14:02 EJS - How to display variables/variables not showing up »
I'll just give the run-down. Server.js: // load the things we need var express = require('express'); var app = express(); // set the view engine to...
(0) odpowiedzi