Data dodania Pytanie
2017-03-18 23:03 How to generate a list of radio buttons/checkboxes with ejs from JSON object? »
I have a json object that I am passing to ejs, and based on certain fields in that object I would like to generate checkboxes and radio buttons, witho...
(0) odpowiedzi
2017-03-18 13:03 Getting error in a socket.io chat client on heroku »
I have uploaded a node.js, express chat app to Heroku, but it does not work. Here is my log: 2017-03-12T15:55:42.109224+00:00 heroku[router]: at=err...
(0) odpowiedzi
2017-03-17 19:03 Signup called twice nodejs »
I have a problem with my signup method. When I fill the signup form and i click the signup button, the method signup is called two times. In the first...
(0) odpowiedzi
2017-03-17 18:03 Sailsjs: set a cookie for all website visitors »
I have a website build on sailsjs. I'm looking to do an A/B test on a CTA used throughout the site.... and thought the easiest way to accomplish this ...
(1) odpowiedzi
2017-03-17 12:03 Directory navigating to CSS Stylesheet »
I'm trying to navigate to a stylesheet and I've tried many options but none are working. (/stylesheets/main.css) (../stylesheets/main.css) (./stylesh...
(2) odpowiedzi
2017-03-16 23:03 How to Iterate through JSON to make ejs snippets with dynamic data »
Alright, I've found myself in over my head with this one (or it's late and I can't think, either / or). I have a json response that looks like -OB...
(1) odpowiedzi
2017-03-16 06:03 Unexpected token catch while compiling EJS »
I received the following error in terminal: SyntaxError: Unexpected token catch in /Users/Person/file_name/views/pages/single.ejs while compiling ejs....
(0) odpowiedzi
2017-03-15 22:03 EJS Include raw partial without rendering its contents »
I'm using ejs on node.js side to include partials (glsl shaders) in to core page inside script tags. Afterwards i'm planing to retreive text content o...
(1) odpowiedzi
2017-03-15 20:03 How can I return an error or an N/A if an object doesnt exist in the JSON I'm using »
I'm wanting to display who is playing in today's games as well as what channel they are on using this JSON, but it keeps giving me this error: TypeE...
(3) odpowiedzi
2017-03-15 18:03 Integrating react into EJS project »
I'm trying to integrate React (and subsequentially JSX) into my already built / established project that uses EJS. (EJS w/ Node, express, mongo, brows...
(0) odpowiedzi
2017-03-14 23:03 EJS include external html »
Is it possible to include HTML into EJS? We have some templates that live outside our local environments (Apache/SSI), is it possible to do somethi...
(0) odpowiedzi
2017-03-14 12:03 How to sent and get a parameter in EJS? »
I can't get parameter in ejs, and how to sent and get parameter another EJS template. Here is my code: data.selectedTab = surveyType; data.label =s...
(0) odpowiedzi
2017-03-14 01:03 Using Mongodb variables out of its functions »
So I'm making a web application and I'm trying to send variables to an EJS file but when they are sent out of the mongo functions they come out as und...
(2) odpowiedzi
2017-03-12 17:03 how can I style my .ejs file with css? »
I inserted in the head of my .ejs file located in views/pages but no result. styles/style.css is located in project folder. Any help?? Thx a lot ...
(1) odpowiedzi
2017-03-12 07:03 Send json data (asynchronous) to my response »
So,upon request I respond with a basic template(I use ejs) and I want to add json data to it when I get from an external API. I have noticed that I ca...
(1) odpowiedzi
2017-03-11 15:03 cannot pass variables from node js to ejs page »
I am sending parameters from node js to an EJS page as... router.get("/AdminDatabase", function(req, res) { res.render('Pages/AdminDatabase', { ti...
(0) odpowiedzi
2017-03-11 12:03 Error while sending parameters to EJS page from node js »
I am sending parameters from node js to an EJS page as... router.get("/AdminDatabase", function(req, res) { res.render('Pages/AdminDatabase', { ti...
(0) odpowiedzi
2017-03-11 04:03 How to place an EJS tag within another »
I am using EJS as my templating engine. I am passing variables from node js to ejs like... router.get("/AdminDatabase", function(req, res) { res....
(1) odpowiedzi
2017-03-10 16:03 how to send parameters to an ejs page from node js »
I am passing the title to the EJS pages from node js as below router.get('/Home', function(req, res, next) { res.render('Pages/Home', { title: 'Ho...
(1) odpowiedzi
2017-03-10 01:03 remove period from key name in JSON response »
So, I'm not sure what's going on here and why you'd put a period in JSON key names. The overview of what I am trying to do is pass a json response t...
(2) odpowiedzi
2017-03-09 23:03 Express trying to pull assets from wrong folder »
In my express project, when I render the product route with an id, the assets try and load from /products presumably in the public folder (products do...
(0) odpowiedzi
2017-03-09 16:03 NodeJs - esc is not a function »
I got a weird issues when trying to render an .ejs file at this specific lines TypeError: /home/me/nodeapp/app/views/default/page/connection.ejs:66 ...
(2) odpowiedzi
2017-03-09 09:03 variable passed to res.locals is undefined »
This code is running as a successful authentication redirect. Consider this: router.post('/', (req, res) => { yelp.search({ term: 'bars', loca...
(0) odpowiedzi
2017-03-08 22:03 How to pass data (securely/discreetly) from a node module to an Angular module? »
I have a situation where i get some sensitive information (user creds /roles / personal data) in the headers at the webserver level , i need to get t...
(0) odpowiedzi
2017-03-08 00:03 Dynamically creating routes with Express and EJS template from JSON response »
I have a number of products and would like to dynamically create a route for each one so when I add a product to the CMS that I am doing an API call t...
(1) odpowiedzi
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