Data dodania Pytanie
2017-08-31 15:08 How to pass a data array from express.js to ejs template and render them »
I use express.js in my nodejs web app, user input some condition, and the program get an array of data such as this: var data = [ { name: 'Salm...
(1) odpowiedzi
2017-08-31 01:08 Can't get ejs value into script variable? »
Whenever I attempt to set a variable within a script to be equal to an array rendered using ejs I get 'Invalid are unexpected token'. Here is the sni...
(2) odpowiedzi
2017-08-30 23:08 Push data from mongodb into a front-end array »
I'm working on a simple node.js app that's storing data with mongodb. I'm not having any trouble adding new records to the database, or with displayin...
(1) odpowiedzi
2017-08-30 09:08 How to require jQuery in Express app with EJS template engine »
I'm using ExpressJS for web development and EJS as template engine. I want to know if there is any convenient way of requiring jQuery to work on my EJ...
(1) odpowiedzi
2017-08-30 08:08 How to conditionally display HTML with EJS Template? »
I tried following condition that's works fine, <% if (user) { %> <h1> Success </h1> <% } else { %> <h1> Failure &lt...
(1) odpowiedzi
2017-08-29 23:08 Script tag not running properly »
I think it's best to start by showing the portion of code in question: <script> alert("check 1"); </script> <script> alert...
(2) odpowiedzi
2017-08-29 08:08 How to link a CSS file in HTML fille which is located in another folder »
My link looks like this <link rel="stylesheet" href="../styles/all.css" type="text/css" /> It is seen from the picture that path of the hea...
(3) odpowiedzi
2017-08-28 16:08 In Nodejs, how can i check params in Ejs render »
I want to display another view if there is :id in Semantic URL app.get(['/topic', '/topic/:id'], function(req, res){ id = req.params.id if(id...
(1) odpowiedzi
2017-08-28 09:08 Why can't I render "place_id" in google maps api to an ejs file? »
I am rendering maps.ejs file with : place_id , lat , lng . If I declare the "place_id" in the maps.ejs file in initMap function itself then the code ...
(1) odpowiedzi
2017-08-28 04:08 User login validation with node/ejs/express/mongodb »
I am attempting to make a login page that both validates the username and password as well as redirect to another page if the username and password ar...
(0) odpowiedzi
2017-08-27 11:08 Set the lookup path of view folder of ejs in express »
I have app.js in Express_server folder.Full location of aap.js is I:\WEB Development\Node\Express_server\ and I made views folder at the location I:\...
(1) odpowiedzi
2017-08-25 18:08 Node.Js - Generate canvas DOM objects and pass to EJS / template engine »
I get to ask stupid questions today as I'm leaning Node.js. I'm following some examples and am now injecting some of my own stuff intot he project. I...
(0) odpowiedzi
2017-08-25 18:08 Retrieve from multiple APIs using Node Js and parsing it over to EJS files »
Hello guys I am currently having trouble trying to solve this so I am working with https://newsapi.org/ APIs trying to pull from multiple sources but ...
(1) odpowiedzi
2017-08-25 05:08 NodeJS app: error 404 for scripts/main.js when trying to link »
When i go to posts index route (http://localhost:3000/posts), the main.js file served in /public/scripts folder is found, but when i go to the posts s...
(3) odpowiedzi
2017-08-24 17:08 "ejs.render" is calling next route »
when I enter in http://localhost/client, display 404. app.get('/client', function(req, res) { ... ejs.render('any template', {}); ...
(1) odpowiedzi
2017-08-24 14:08 Express.js: Adding variables for EJS in request hook »
I want to add some variables to be used by EJS when rendering a view on each request, as if adding them along with the variables in the render functio...
(2) odpowiedzi
2017-08-24 13:08 Bootstrap footer at the bottom using ejs files »
Hy i am trying to create a footer that stays at the bottom and dosen't overlay the content. Because i have different pages in my website i separated t...
(0) odpowiedzi
2017-08-23 23:08 Node / EJS populate a table based of a value selected in drop down »
i have a input form written in EJS . The first value in the form contains a drop down called project code . Now i want to have a table below this drop...
(0) odpowiedzi
2017-08-23 17:08 Node js .create behaving wierdly »
(If you find any issues with my question comment them and I will fix them) To sum the issue up, things are being created were they shouldn't be. Lets ...
(0) odpowiedzi
2017-08-23 09:08 Can I access cookie from ejs page in server-side not the browser-side? »
I need to make routine for checking login status under an environment - node.js, express, ejs. I think I need to check login status in all the ejs vi...
(1) odpowiedzi
2017-08-22 16:08 Accessing variable sent to .ejs in script tag »
I had a longer break with coding, so I need a revision. I am trying to write a simple app that displays the value of one specific currency after conve...
(0) odpowiedzi
2017-08-20 14:08 attached comments loop to many times javascript »
I've been having an error where I cant properly attach my comments to the message id. below is what I have tried, any help / hints would be great. r...
(1) odpowiedzi
2017-08-20 01:08 Bootstrap NavBar not collapsing with EJS? »
I have a navbar created with Bootstrap that I would like to collapse when on a mobile phone, however, the collapse is not working. I am wondering what...
(0) odpowiedzi
2017-08-19 15:08 Days in current view into select control (DHTMLX Scheduler) »
I"m trying to list the days shown in the current view as options inside a select tag (for example if the current view has Sun Aug 13th through Sat Aug...
(1) odpowiedzi
2017-08-19 01:08 Page shows all Semantic UI modals when button clicked »
I'm trying to have a popup for the description of a book when a user clicks the "view details" button, and I am trying to accomplish that using the se...
(1) odpowiedzi
2017-08-18 22:08 Node.Js partial data »
I want to have some default data accessible in all views in my Node.Js application. My data need to be in /views/layout/header.ejs └── views ...
(1) odpowiedzi
2017-08-18 19:08 EJS IF statment error with Node JS MongoDB »
i am trying to have a server side validation for my App with as Node js view code router.post('/', function(req, res, next) { var Fullname = req.bo...
(0) odpowiedzi
2017-08-18 12:08 Cannot read property 'name' of undefined in Node JS »
I am new in Node js. i'm trying to make CRUD app in node js using mysql. but i am facing error which i can't understood or handle. Please Help. and th...
(1) odpowiedzi
2017-08-17 01:08 How to make pagination with Node, Mongoose, Bootstrap and pass it to html? »
I'm building a blog with NodeJS, I'm using "Mongoose Paginate" to divide the database in pages, Bootstrap 4, EJS as view engine and the JQuery Paginat...
(1) odpowiedzi
2017-08-16 20:08 "Users not defined" in node.js »
I'm using EJS as my template engine. My browser says "users" is not definded, but in my server.js file, i've defined it as var users = require("./rout...
(1) odpowiedzi
2017-08-16 15:08 Node.js, how do i take HTML form text input and direct it to a local file »
I am trying to take some very simple text input through a form and direct it to a .txt file. not getting much luck and am way out of my depth, any hel...
(0) odpowiedzi
2017-08-16 11:08 Can't get ejs file »
I need to call an ejs file in another ejs file and exactly in function but i have always "can not get file" If i do an include file outside the functi...
(1) odpowiedzi
2017-08-15 12:08 get value of multiple inputs in ejs file dynamically »
i'm trying to make a shopping cart with sails.js. I have no problem to add lines in mysql DB and no problem to display the infos but i'm stuck on how...
(0) odpowiedzi
2017-08-14 19:08 Passing data from one page to another using Node, Express & EJS »
I've got the following routes set up: router.get('/', function(req, res) { res.render('index', {}); }); router.post('/application', function(req...
(1) odpowiedzi
2017-08-14 03:08 Passing array of objects from EJS template to Javascript function? »
I have a basic Node.js application and when a user hits a certain route, a number of records are retrieved from the database in the route and passed t...
(1) odpowiedzi