Data dodania Pytanie
2017-03-21 04:03 Cannot read property after assigning ejs variable to js »
For whatever reason, this code returns a type error in the if statement. Cannot read property product.thumbgallery1 of undefined. var urlArray= []; ...
(1) odpowiedzi
2017-03-20 04:03 Render app views per user agent in EJS »
I'm working on a Node.js/Express that uses EJS and trying to render certain views on desktop or mobile. I've added the following middleware to return...
(1) odpowiedzi
2017-03-20 02:03 How to append a div based on the content of a JSON Array information »
I am working on an EJS view and I am trying to go through the "TYPE" array in a JSON file and if it contains "SOCCER", I want to append "This is a FOO...
(1) odpowiedzi
2017-03-20 01:03 Node JS EJS get URL parameters »
I'm trying to read URL parameters in an EJS template, however everything I try or read from google isn't working. Here's the relevant part of my app.j...
(1) odpowiedzi
2017-03-19 04:03 Return value for main function from a callback function »
So i am using express routing to handle a get request. The get request will end up calling the a function that will handle sending an email. I'm tryin...
(1) odpowiedzi
2017-03-19 00:03 Include files in a .ejs file »
I am trying to use Express for my Node.js server. I put my web page in /views/page.ejs as required. Yet, I have something like this in my code. <s...
(1) odpowiedzi
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