Data dodania Pytanie
2017-01-29 08:01 how to use a variable in req.body - nodejs »
what I want to do is to get data from a form but the form is being generated dynamically and so I wont know how many rows will come out. so for the fo...
(1) odpowiedzi
2017-01-29 00:01 get column data and insert into a row with id given in another column - sql nodejs »
I have made a certain form with a table layout the table is kind of like this below: UAN NAME DESIGNATION No. of Days Present 87982 JOHN...
(1) odpowiedzi
2017-01-27 16:01 Create a list of checkboxes from returned array »
Currently I have a JavaScript file that produces an array: var express = require('express'); var router = express.Router(); var adb = require('./adb....
(1) odpowiedzi
2017-01-27 07:01 EJS-Browserify-Gulp set up »
I have gulp/browserify environment and I need to take advantage of ejs templates. What I've got so far for watch task for view files are const gulp ...
(0) odpowiedzi
2017-01-25 17:01 Request API data into Express view »
Newbie here. I'm trying to send data I received from making making an API call (when the user requests the zoopla page) into an index.ejs view. I'm tr...
(1) odpowiedzi
2017-01-24 19:01 Can a templating engine such as EJS be used in a PWA? »
I am learning about writing Progressive Web Apps and all of the examples use html files. I'd prefer to use EJS with a node server. Is it possible to c...
(1) odpowiedzi
2017-01-24 00:01 Onclick button -> retain color - is this possible using arrays? »
Using a php/ejs script; I would like a button to retain its hover color once clicked. The script is running on Ajax, so the page doesn't refresh. I ...
(2) odpowiedzi
2017-01-23 17:01 Loading JSON into C3.js using javascript express routes »
I am trying to draw a graph using c3.js. I was able to follow the getting started so I know the module is working correctly, but I am having troubles ...
(1) odpowiedzi
2017-01-22 21:01 How to use Block inheritance in EJS templates »
base.ejs: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>M...
(1) odpowiedzi
2017-01-22 17:01 How to display all users database (mongodb) details on .ejs file »
I have a node.js website that i build with this tutorial: https://scotch.io/tutorials/easy-node-authentication-setup-and-local now i want in one of ...
(1) odpowiedzi
2017-01-21 21:01 Layout is called with express-partials even when layout:false »
In my layout.ejs, I use the variable user as follows: <!DOCTYPE html> <html> <head> </head> <body> <div id="user...
(2) odpowiedzi
2017-01-21 11:01 EJS,express, ui-router and angularjs how do they work together? »
If i have an angularjs project in project1 then a public folder with index.ejs as the main html how would i set it up in the server.js outside the pub...
(0) odpowiedzi
2017-01-20 16:01 Access multilevel key from a JSON object in javascript »
I have a javascript function which returns the response like this( I am using nodejs and ejs): "index_1": { "mappings": { "type_1": { ...
(2) odpowiedzi
2017-01-20 12:01 EJS include as wrapper »
Can I include another .ejs file that will wrap the current content? I want to have a general layout like this: layout.js: <!DOCTYPE html> <...
(1) odpowiedzi
2017-01-19 15:01 Getting Undefiend when using a variable on getting JSON value »
I got the following node.js code snippet that do a swithch statement: var obj = JSON.parse(file); app.post('/save', function (req, res) { switch...
(1) odpowiedzi
2017-01-18 23:01 How to pass variable value into script tag in ejs file? »
I am trying to implement Collapsable Tree in d3. I have a code like the following in my .ejs file. <div class="space5px" > <%= startNod...
(1) odpowiedzi
2017-01-17 23:01 problems with ejs(data.forEach is not a function)! »
Hello so i am trying to run a javascript function inside of a ejs file and this is what my code looks like : <div class='row'> <% data.forE...
(1) odpowiedzi
2017-01-17 16:01 NodeJS Express defining custom routes »
This is probably a really basic concept that I'm not understanding but in my NodeJS application I am trying to define a custom route. my directory st...
(2) odpowiedzi
2017-01-17 15:01 Update a JSON File value depending on the key name »
I got a following ejs form snippet: What this does is show the data from the json file. <form method="post" action="/save" id="form_Update"> ...
(0) odpowiedzi
2017-01-16 22:01 Replace objects evaluated property inside EJS forEach with client side variable »
Hope my question is not too confusing. Essentially, I am trying to update a EJS forEach statement to change the object property that is being looped ...
(0) odpowiedzi
2017-01-16 17:01 Jade / Pug version of <template> </template> tags »
I was working with a friend today, he uses EJS as templating and I'm using Jade / Pug, I saw something in his code, this part is useful for me but we ...
(1) odpowiedzi
2017-01-16 17:01 set background image with ejs template »
Working on a blog site, Here's the effect I want : I use a forEach to loop through every post and create the same style for each post. This is my co...
(1) odpowiedzi
2017-01-13 17:01 Send error msg to ejs file in nodejs »
i have a register form and i need to send the error message when username exist or email exist: nodejs code : app.post('/register', function(req, re...
(1) odpowiedzi
2017-01-13 10:01 I can't read a JSON file with node.js »
Hi I got the following code in Node.js fs.readFile(file, function(err, obj) { obj.data1.forEach(function(element) { console.log (element....
(2) odpowiedzi
2017-01-13 00:01 EJS unable to access DOM elements causing undefined »
I am trying to select DOM elements via VanillaJS or jQuery. Either way they are producing undefined within my ejs file. I load all of my libraries at...
(2) odpowiedzi
2017-01-12 14:01 Bootstrap Grid System »
The project I'm working on has a blog, makes use of bootstrap grid system. 3 blog posts in a row, Code : <div class="container"> <div ...
(1) odpowiedzi
2017-01-12 11:01 Change layout according to URL of render »
I'd like to change the layout of my ExpressJS 4.0 app according to the URL render. My code : // route sample response.render('frontend/user/index');...
(0) odpowiedzi
2017-01-11 19:01 EJS variable only being changed in current scope »
I recognise that the issue here is to do with scope, although I don't understand how, the counter variable defined in EJS outputs 0,1,1 when the site...
(0) odpowiedzi
2017-01-11 14:01 NetBeans don´t run Node.js and ejs project what is valid start file »
I want to run a project which I developed with Node and ejs. But there is a problem with the start file. What musst I change. If I start the project f...
(0) odpowiedzi
2017-01-11 14:01 How to use data in external javascript file from express »
I am creating application using node.js express where i want to pass some data from express and use in external javascript file. here is my app.js c...
(1) odpowiedzi
2017-01-10 20:01 Read image from mongoDB, send to .ejs file, display it to user. How? »
This is my first web app, so bear with me. I'm using node.js, express, mongoose. I am creating a web app that allows users to post events happening a...
(0) odpowiedzi
2017-01-10 14:01 Jquery application loading slowly »
In my application, I am using steal to load all the controllers which are needed for the current page and one more as then and structure goes somethin...
(0) odpowiedzi
2017-01-10 07:01 Can we call two diiferent controllers(canjs) in one ejs file »
I am new to canjs and ejs.I created two controllers in my js file - contacts,countries. (function(){ var CONTACTS = [ { id: 1, n...
(0) odpowiedzi
2017-01-09 23:01 why var clientPeople = <%- JSON.stringify(serverPeople) %>; console.log(typeof clientPeople); returns as object not string inside of ejs file »
This code is running inside of an ejs file: Questions is why var clientPeople = <%- JSON.stringify(serverPeople) %>; console.log(typeof clien...
(1) odpowiedzi
2017-01-09 06:01 node js (with ejs view engine) and datatables »
I am using node js with ejs view engine and mySql database. I want to use datatable in my application with Server-side processing in node js so how sh...
(0) odpowiedzi