Data dodania Pytanie
2017-06-03 20:06 Test express render with locals »
Here is my sample code: File: index.js var express = required('express'); var app = express(); app.get("/", function(req, res){ ... ... ...
(0) odpowiedzi
2017-06-03 00:06 Storing variable passed from node server to EJS file as input data for form »
I'm trying to store a variable called from the server as the default value of a form. The for loop I used is correctly displaying all the data and eve...
(1) odpowiedzi
2017-06-02 20:06 Specify Window Features with shell.openExternal(url) in Electron »
Currently I'm trying to open a url on app launch in my Electron app's main.js file with the line: shell.openExternal('https://google.com'); ...
(0) odpowiedzi
2017-06-02 10:06 EJS include is not a function Error »
On many of my EJS pages I have the following code: <%- include('elements/fbviewpagepixel.ejs') %> It works perfectly fine except on this one ...
(0) odpowiedzi
2017-06-02 03:06 EJS Express unknown token < »
I am getting an error within my terminal saying that I have an unknown token "<" but I am looking through and can not see it. ~express var...
(0) odpowiedzi
2017-06-01 18:06 Why my middleware is not checking if the email already exists? »
I am authenticating people using passportJS. The problem I have recently realised is the fact that users are able to register for more than one accoun...
(1) odpowiedzi
2017-06-01 00:06 express validator; error variable not defined within ejs »
I have an issue that I've been trying to figure out for some time now, and was hoping someone may be able to point me in the right direction. My vari...
(1) odpowiedzi
2017-05-31 17:05 How to get EJS to re-render without location.reload() »
I am using ejs in conjunction with nedb for my web app. I am tring to get ejs to re-render its data component without needing to reload the whole DOM....
(0) odpowiedzi
2017-05-30 00:05 EJS dynamic include »
I am trying to dynamicly include one of my partials, using EJS. I render a template like so: Router router.get('/', noteController.getNotes, (req, r...
(1) odpowiedzi
2017-05-29 18:05 EJS Template how to escape modulus operator »
How to escape the modulus operator in the below code in EJS templating language <% if(i + 1) % 4 === 0 { %> <div class="clearfix">&l...
(0) odpowiedzi
2017-05-29 16:05 Nodes and mongoose »
How to I render data from multiply collections to ejs view? Example: Route. get('/',function(req,res,){ res.render{ Col1: col1Data, Col2: col2Data ...
(0) odpowiedzi
2017-05-29 15:05 How to trigger a second event after the first automatically triggered event »
I have the following code which works like this; I get the URL parameter and I make an event so the dropdown option is automatically selected based o...
(1) odpowiedzi
2017-05-28 21:05 Express node ejs link issues »
I am trying to make a button go to another page which I felt like I knew what I was doing but obviously I am over looking something here. navbar.ejs...
(1) odpowiedzi
2017-05-27 21:05 ReferenceError: window is not defined after Ajax call trying to redirect the user »
I am new to express with EJS. I tried making a ajax post request for submitting to the values to the DB using. $.ajax({ type: 'POST', url: ...
(1) odpowiedzi
2017-05-27 20:05 Jest Testing with require modules: ejs-loader »
I am playing with the idea of having large static html bundles just loaded into a react component vice typing them all out in jsx. I am currently just...
(0) odpowiedzi
2017-05-27 16:05 IF conditional in EJS with Script tag doesn't work »
I've some problem in here. I put script tag inside IF Conditional. Nah, script tag is running when condition is TRUE or FALSE. For example <% if ...
(1) odpowiedzi
2017-05-25 11:05 How to access server-side variable in EJS view? »
I'm new to Javascript and I'm trying to access a json-object passed from my server. For some reason I get syntax-error when trying to convert it to a ...
(0) odpowiedzi
2017-05-25 03:05 EJS getting JSON data with gulp »
I'm using gulp to compile my ejs templates into an html file and I am struggling to find out how to tell it where my json file of data is. When I try ...
(1) odpowiedzi
2017-05-24 12:05 Extra set of partials when inspecting with chrome dev tools using nodeJS(express,ejs)? »
I'm currently learning nodeJS and trying to create a landing page with express and ejs, when adding partials with ejs i noticed something strange. The...
(0) odpowiedzi
2017-05-24 12:05 Error installing ejs through npmbox »
I have an offline environment, without internet access. I am installing my node.js dependencies through npmbox. I had a problen unboxing ejs [root@S...
(0) odpowiedzi
2017-05-23 19:05 EJS include functions defined in a separate ejs file »
I am trying to include an ejs file that contains functions for setting up my views. These functions were defined to be used a helpers. I have tried us...
(1) odpowiedzi
2017-05-23 08:05 How to render only data without reloading entire page in node js using ejs templating engine »
I'm new to Node JS. Below is my code. On AJAX call new data is not being rendered. Is this the right way to render data without loading the entire pag...
(1) odpowiedzi
2017-05-22 23:05 Is it correct to put javascript code on ejs files? »
Hi I'm developing a simple app in Node JS using express and EJS for all the templates/views of the project. I'm putting some simple scripts (relateds ...
(0) odpowiedzi
2017-05-22 15:05 EJS Helper function moongose »
recently I faced the problem that the result from database is not as not be able to display on the page. What am I doing wrong ? This is the function...
(0) odpowiedzi
2017-05-22 00:05 MongoDB storing correct date but not showing correctly on Views(EJS) »
I have a form where the user inputs a date using This is stored in a Mongo DB, the console log shows the date as correct (in ISODate("2017-05-21T00:...
(1) odpowiedzi
2017-05-20 17:05 Nodejs ejs always asking for view when trying to redirect a url and receive its json data »
I am trying to make a slack app and to complete Oauth2, I have to send the URI below and get a JSON response back in the body. The problem is, every...
(0) odpowiedzi
2017-05-19 19:05 How do I fix the folder path of included routes from a blog built within a site using NODE.js? »
I'm doing a blog inside a dynamic website using NODE.js. However when I do the blog routes, when I include the "partials / header" for them, the progr...
(0) odpowiedzi
2017-05-19 19:05 Get user ID to make AJAX post in NodeJS »
I am trying to build a simple app that allows a user to signup, login, and search the weather of a particular city. The feature I am trying to add is ...
(0) odpowiedzi
2017-05-18 22:05 EJS templates and bash variables »
I have an ejs file that has something like this in it - "DIV TAG START" id="myid" class="version class"> Version 0.1.0-myver "DIV TAG END" I wa...
(0) odpowiedzi
2017-05-18 16:05 How to make EJS show only one document inside an array of documents? »
Below is the EJS code I am using to show the data. <p class="text-center">Details : <%= user.transactions %></p> When I put in t...
(1) odpowiedzi
2017-05-16 14:05 Only the first included css file in node js html is being applied »
I am adding CSS and JS files to my node.js/express application using ejs templating engine. JS files are being applied but only the first included CSS...
(1) odpowiedzi
2017-05-16 08:05 Print data from mongodb to ejs using nodeJS »
I have this kind of JSON data. This data is fetched from MongoDB. I want to print that on EJS page. [ { _id: 59157619e9bcd218d9dd4dba, que: 'Over...
(2) odpowiedzi
2017-05-16 08:05 Not Found Error in NodeJS »
I am new in NodeJS and I am trying to build an ecommerce application. I have readymade design and all the front end things with angularjs code. If I'm...
(1) odpowiedzi
2017-05-15 19:05 How to get multiple content areas in hapi.js ejs layouts? »
I would like to define information in a template that is rendered in the containing layout using ejs in hapi.js. For example: layout.html <html&g...
(1) odpowiedzi
2017-05-15 04:05 Problemm with rendering sequelize queries »
I am having a problem with my show page. It is supposed to show a specific post in more detail when you click on it in the index page. I get no errors...
(0) odpowiedzi