Data dodania Pytanie
2016-12-26 21:12 Node.js - Passing multiple objects to same EJS file »
I have multiple MySQL query results where I render the first and make callable the rest ones to a single EJS file (/data) as objects. I render only t...
(1) odpowiedzi
2016-12-26 09:12 app.use ("*") seems to be calling function multiple times »
app.use("*", topUsers) is called multiple times.. topUsers is being called multiple times function topUsers(req, res, next){ console.log("req.ur...
(1) odpowiedzi
2016-12-25 22:12 Sequelize Pulling data from multiple tables and passing as objects to render in EJS »
am new to Node Js and associated programmes. Currently trying to create an app which uploads images with captions etc and for users to like and commen...
(1) odpowiedzi
2016-12-25 12:12 passing ejs array to javascript function »
How do I pass an ejs array in a javascript function? function validate(array) { alert("Here"); var ok = false; var emailva = document.getElementById...
(1) odpowiedzi
2016-12-25 01:12 Create reusable partial view in sails js »
I need to create a reusable "featured listings" ui component in my sails js app. I'm using the default ejs template engine. Basically this "featured l...
(0) odpowiedzi
2016-12-23 17:12 Sending ejs template using nodemailer »
I'm trying to build a web application using express.js. In my application, I'm using nodemailer for sending mail. If I just use it to send basic mail ...
(1) odpowiedzi
2016-12-23 08:12 NodeJS returns no results with Elasticsearch / Mongoosastic »
I'm trying to create a simple search form to search in one Model (Products). Here is my Product Model using Mongoosastic: var ProductSchema = new Sc...
(1) odpowiedzi
2016-12-23 08:12 ejs - looking to add if condition in EJS template »
Hi I am just start to use EJS. Now I need to check condition so I use if condition in EJS, but while running it shows error. The code I am trying is ...
(1) odpowiedzi
2016-12-22 18:12 print variable returned by server in node.js »
I'm creating a node.js app. I have a list with 4 types of movies (see below). When I click one of these types I make a call to the server, then the ...
(1) odpowiedzi
2016-12-22 15:12 Loop througth string consists of array in ejs file in node js »
I am working on node project. I am able to loop through array but my requirement is to loop through string consists of array. Example of my object key...
(0) odpowiedzi
2016-12-22 10:12 nodejs foreach swig and ejs »
I'm trying to convert some code from swig to ejs, but are facing an issue with a "for" loop. The problem is that the loop inside the swig file is loo...
(1) odpowiedzi
2016-12-21 23:12 When getting JSON data via NodeJS, how would I update my EJS template via ExpressJS? »
I am calling some APIs using NodeJS and passing them to my EJS template via ExpressJS with this code: app.get('/', function (req, res) { res.render('...
(2) odpowiedzi
2016-12-21 01:12 forEach not working properly on EJS template »
I was trying to grab all the students from the database collection and have them display row by row in the EJS template. I thought a forEach would be ...
(0) odpowiedzi
2016-12-21 00:12 Setting URL Parameters using Express and EJS »
I am using express and ejs to route templates on a website I am building. I want to pass a URL Parameter to a subsequent page when routing. Right no...
(0) odpowiedzi
2016-12-19 21:12 Pass variable from Javascript file to Express/Node file »
Basic File Structure: public javascript script.js app.js views startprofile.ejs I'm using the startprofile.ejs which also u...
(0) odpowiedzi
2016-12-19 19:12 Pre-Populate form elements in EJS »
I am sending information from a data base to the updatecontact.ejs. What this is doing is allowing the user to change the information they have alrea...
(0) odpowiedzi
2016-12-19 06:12 Express/EJS Array and List Click Appending »
Both the skills arrays are arrays of string I'm passing via Express, I want the list items to be clickable and when they are clicked I want the text (...
(1) odpowiedzi
2016-12-18 16:12 print query string from url in ejs file »
how can i print query value from url in ejs file ... my link is http://localhost:3000/task/id?login=true&names=Build%20NodeJS%20Application i ne...
(0) odpowiedzi
2016-12-17 20:12 How can I use if statement in ejs? »
I have a page that makes a foreach and show some photos like this <% imgs.forEach(function(img) { %> <img src="uploads/<%=user.user...
(1) odpowiedzi
2016-12-17 07:12 HTML inside of EJS is not rendered »
I have been following several tutorials and for some reason my HTML will not render inside of the EJS. Here is an example <% User.find().exec(fun...
(1) odpowiedzi
2016-12-17 02:12 EJS FOR LOOP posting to table »
So my code works, it takes the object contacts, and puts out each element minicontact as a table element. The only problem is that the mongoDB object...
(0) odpowiedzi
2016-12-16 12:12 How can i show my files in html using node js »
I'm make a program in node js that makes uploads of files I just made the upload part, now i want to list the upload files in html file ...
(0) odpowiedzi
2016-12-16 08:12 Best practice to config Meta tag in reactjs »
The system uses reactjs, expressjs, ejs template. What is the best practice to config meta tag for each page ? ...
(1) odpowiedzi
2016-12-16 02:12 Should I be using script tags in ejs files? »
I'm learning how to develop a node application. It's an app where people can post events happening around the city. I have an ejs file, new.ejs, that...
(1) odpowiedzi
2016-12-15 09:12 When rendering ejs file, it does not show properly »
I am trying to render ejs file from nodejs express. But it shows html codes with thes character � everywhere. let express = require('express'); let...
(0) odpowiedzi
2016-12-14 00:12 Node JS express - updating a single document »
i cant figure why my documents are not updating. I fetch any record and load it into the form with http://localhost:3000/update2?buyerID=2299. Howeve...
(2) odpowiedzi
2016-12-13 17:12 How to display different HTML elements in if statement »
Hello, I am new to HTML and JS therefore would like to ask for some help. Here I want to display two different HTML elements according if statement is...
(3) odpowiedzi
2016-12-13 02:12 Include partials in hjs »
In ejs we can include a partials in a template in this way (suppose that header.hjs is in view/partials path): <% include ./partials/header %>...
(1) odpowiedzi
2016-12-12 21:12 Node JS Express - updating documents »
Ive achieved a retrieve via http://localhost:3000/update2?buyerID=2299 which fetch the particular document. When i press submit it redirects to the /...
(1) odpowiedzi
2016-12-12 20:12 Node JS Express update issues »
i'm having problem implementing an update within my express application. http://localhost:3000/update2?buyerID=2299 when i enter the link shown above ...
(2) odpowiedzi
2016-12-11 23:12 node js express - querying the price field »
Im having trouble figuring out how to query the price. My current attempt is not working and im not sure what you have to type in the local host. htt...
(1) odpowiedzi
2016-12-10 19:12 How to render variable with HTML tags in EJS template? »
By html tags I mean <!DOCTYPE html> not <!doctype html> that I get from EJS when I enter my varr in <script></script> ...
(0) odpowiedzi
2016-12-09 15:12 Node JS - Express - How do i search the mongoDB object_id within the local host browser? »
How would i search the object_id in my browser? Any ideas? Ive tried localhost:3000/objectsearch?objectid=58499f5ed0055acc431a99f0 but that just brin...
(1) odpowiedzi
2016-12-09 01:12 Node js express - My query isnt returning what i exspect, any thoughts? »
When I run this route with http://localhost:3000/buyersearch I get "please enter an Buyer Identifation Number" as aspected. But when I run http://loc...
(2) odpowiedzi
2016-12-07 23:12 res is not defined in ejs »
Objective: I need to display different templates based on route. In my case it's /edit /new, and I need a condition to display tabs or something else....
(1) odpowiedzi