Data dodania Pytanie
2017-10-15 02:10 Navbar clickable not working in EJS template »
I am new to node js and EJS template in it.I have a navbar in my navbar.ejs file with a drop-down toggle button in it.My problem is that the button do...
(0) odpowiedzi
2017-10-14 19:10 How to block special characters in HTML input field? »
I just want ask if how I will block special characters such as <,>,",/,etc. in html input field? ...
(3) odpowiedzi
2017-10-14 18:10 How to Pass an Array of Objects (Node.JS) to an EJS file »
I am trying to create a form. You enter your info, hit submit, and then a new page opens showing you what you submitted. There's also a button at the ...
(1) odpowiedzi
2017-10-14 17:10 Is there a standard pattern for CSS in EJS templates? »
So I've recently started making more use of EJS templates in my website and so I've done things like broken out the top nav bar and other things into ...
(1) odpowiedzi
2017-10-13 19:10 reading data into .ejs from a CSV in node.js »
I am extracting data from a CSV using d3.csv and routing it into a ejs. d3.csv("http://vhost11.lnu.se:20090/assig2/data1.csv", function(data) { var...
(1) odpowiedzi
2017-10-13 16:10 Server-side rendering in React and error while using ejs as view engine »
So At first I created my app without any view engine. My server looked like this: var app = express(); const apiProxy = httpProxy.createProxyServer...
(0) odpowiedzi
2017-10-13 14:10 Passing data to variable from back-end node app to ejs view script tags »
How can i pass the value of data[0].votes to a variable to access it through my script tags? <script> window.app = <%- JSON.stringify(data[0...
(0) odpowiedzi
2017-10-12 16:10 Getting value fron json in ejs file »
Below is my json file, I want to put src for my img element. How can I access value from my json using keys img1, img2, img3... as I am already loo...
(1) odpowiedzi
2017-10-12 10:10 Open Jquery-ui dialog in another <script> tag »
is it possible to initialize and open the jquery-ui dialog in a different "script" tag , like this : Specification : Working with EJS (Nodejs exp...
(0) odpowiedzi
2017-10-12 01:10 Query mongodb based on form parameter »
I am trying to query mongodb based on form parameter. <form action="/word/" method="GET"> Get quote:<input type="text" name="word" ...
(2) odpowiedzi
2017-10-11 12:10 Alert keeps staying even after reload »
Express: router.get('/polls/new', isLoggedIn, (req, res) => { res.render('new', {title: 'Create a new poll', route: 'new', isLoggedIn: req.isA...
(1) odpowiedzi
2017-10-11 08:10 unable to store session in expressejs (ejs) angular »
iam using Mysql,ejs template with angular tech. Here iam doing login with session but nothing store in it. this is app.js file var index = requi...
(1) odpowiedzi
2017-10-10 18:10 Express : update DB from client »
I'm trying to pass arguments between server -> client -> server. If an user asks to create an article, the server creates a new one in the DB and send...
(0) odpowiedzi
2017-10-10 09:10 Failed to lookup view Node JavaScript »
When I am trying to render the URL to display index.js in the browser, the following error occurs: **Error:** Failed to lookup view "index" in views ...
(1) odpowiedzi
2017-10-10 06:10 Pg-Promise Not Returning Results With EJS »
I'm having trouble trying to get the Postgres data using Pg-Promise using this previous Stackoverflow question: Get the result of postgres-query as va...
(0) odpowiedzi
2017-10-09 18:10 VSCode EJS extension, disables the HTML auto complete »
So, I recently started working with EJS files within VSCode. Anyway, when I added the EJS extension, I lost all of HTML emmet functionality in my EJS ...
(0) odpowiedzi
2017-10-09 14:10 Passing variable from nodejs to ejs file »
I have a variable that i want to pass from NodeJs to EJS file . I need this variable to choose whether or not I display an alert(). while running my ...
(2) odpowiedzi
2017-10-09 12:10 How to generate .html views project in express instead of .ejs »
I am new to NodeJS. I am trying to start a project using Angular. I started by installing Express Framework: npm install -g express Then creating a ...
(0) odpowiedzi
2017-10-08 02:10 res.render throwing error Node.JS »
I've been trying to make this blog, and when it comes to rendering a page it throws, "Res.Render is not a function..." let express = require("exp...
(1) odpowiedzi
2017-10-07 19:10 Node js - app.locals not displaying the value in the page loaded by jquery.load() function »
Using express, I am storing the data in app.locals (say app.locals.user='myName'). On routing it to an ejs page, I can able to retrieve value using &l...
(0) odpowiedzi
2017-10-07 17:10 Can I include HTML blocks of code like footer and header on every page in Node.js whilst using ejs templating engine? »
Similarly to how you can do it in PHP? For example if I have a header.ejs file that contains this code: <!DOCTYPE html> <html lang="en">...
(1) odpowiedzi
2017-10-07 15:10 Awkward escape characters »
Whilst trying to console.log a string I've run into a rather annoying issue. I store the string 2^{\\frac{1}{2}}x=1 in a Node.js database yet when out...
(1) odpowiedzi
2017-10-06 13:10 Get data from nodejs sails in JS/jQ »
I'm trying to get the data that I have from the NodeJS and sails backend directly in jQuery, but I don't found how to do this. NodeJS Backend : var ...
(0) odpowiedzi
2017-10-06 11:10 Node Express render json in ejs not working »
I have a js file that controls the inputs of a form, with the express-validator module. In this process, I have this code to send the validation error...
(0) odpowiedzi
2017-10-04 22:10 Adding Background image to EJS file »
I seem to be fine getting an image to render from my app.js file to the main ejs file, but when i change it to a background image, it does not display...
(2) odpowiedzi
2017-10-04 20:10 Is it possible to pass an ejs variable to embedded JavaScript File »
I have four files, and I'm using node for this project. I have index.ejs,app.js,countymap.js,countries.geo.json. app.js renders the index.ejs file w...
(1) odpowiedzi
2017-10-04 14:10 Displaying data from a Mongodb collection in ejs using Mongoose »
I am brand new to programming. I have a collection called "Practice" in my local database which has "name, role, org". I am trying to figure out how t...
(1) odpowiedzi
2017-10-03 18:10 Load Function not updating Global Variable »
I'm creating a node application and having trouble updating a global variable. Here is my code (ejs file): <% include ../partials/header %> ...
(1) odpowiedzi
2017-10-03 09:10 Rendering result from npm source »
I am trying to build a light weighted api for a project. However I am having troubles rendering my result to my .ejs and combine multiple function res...
(0) odpowiedzi
2017-10-03 04:10 Only show inputs if selected in settings page »
I am trying to figure out how to have a user go to /settings and pick a few check boxes then when they go to /new they will only see the inputs that c...
(1) odpowiedzi
2017-10-02 21:10 How to pass in variable from database | Node | Express »
I need to pass a variable into a ejs template file. I have a routes.js file in my /routes directory, then I have a /views and a /views/partials. How d...
(1) odpowiedzi
2017-10-02 20:10 Navigation using express and EJS »
Having a issue figuring out how to navigate between EJS pages effectively: File directory: I want to go from my index.ejs page to the about.ejs pa...
(4) odpowiedzi
2017-10-02 18:10 Mongoose Get full list of users in table »
I got all users details to use if and for loop from MongoDB database. but I want to all details in a HTML table so how to do that? I got all details ...
(1) odpowiedzi
2017-10-01 19:10 Trying render html entities in my express ejs Application »
Here is the page I am trying to render <% include ../partials/boilerplate %> <div class="triviaContainer"> <h1>GAME...
(1) odpowiedzi
2017-10-01 18:10 Adding CSS to EJS »
Have difficulties linking my css files when using EJS. Already looked into other answer but can't figure it out This is the code I used reference for ...
(2) odpowiedzi