Data dodania Pytanie
2017-07-20 15:07 how to auto-populate dropdown as well show other options in modify mode »
<select class="form-control" style ="margin-left: 20px;width:340px" id="emp_id" name="emp_id" required placeholder="Enter the Employee Id"/> ...
(0) odpowiedzi
2017-07-20 10:07 If conditionals in ejs, best practices »
I have a variable enabled:"false" in my json file, I am reading the data in my content variable in ejs file. But when I check for the condition: &lt...
(2) odpowiedzi
2017-07-20 06:07 How to get user input on click of button in node.js using google maps api? »
I have a map that places a marker on the user's current location using the Google Maps Geolocation api. But I also want the user to be able to search ...
(1) odpowiedzi
2017-07-19 05:07 Is it possible to use css to shrink text to automatically fit the size of the div »
I have been working on a project and there is one page where it would show several divs (using ejs), but if one div has 3 lines and the other has 2, o...
(3) odpowiedzi
2017-07-19 04:07 How can I manipulate a request URL in HighCharts using Express/EJS? »
Alright, so here we go: I've got an express route like so: app.get("/:name", function(req, res){ var name = req.params.name; res.render("c...
(0) odpowiedzi
2017-07-18 10:07 Nodejs loading javascript and images issue »
I am starting back on Nodejs and facing some starting problems. I am trying to get a static page up, with java script and images getting loaded from ...
(1) odpowiedzi
2017-07-17 20:07 HTML webpack plugin not parsing EJS variables »
I'm trying to load my Google Places API key from a .env file into my main index. I know that process.env.GOOGLE_PLACES_API_KEY is loading correctly, s...
(1) odpowiedzi
2017-07-17 15:07 ejs express nodejs onclick show details »
i built up a nodejs app using express and ejs as template engine. i can show a list of articles in a page but i don't know how to show detail of artic...
(0) odpowiedzi
2017-07-17 02:07 Can't connect to socket on ejs file, reference and io not defined error »
I need to send data to my express app when I make a socket connection on the client side using socket.io. However, I get a reference error on the belo...
(1) odpowiedzi
2017-07-16 20:07 Redirecting to new url with ajax and express routing »
I have a button with id: 'tune-in' on a page auth.ejs, which on click should go to a new page index.ejs. However, when I click the button, the index ...
(1) odpowiedzi
2017-07-16 00:07 Rendering EJS template throws an error this.templateText.replace is not a function »
I'm trying to render an EJS template from file but I'm getting an error this.templateText.replace is not a function const http = require('http'); con...
(1) odpowiedzi
2017-07-15 21:07 parse info from JSON with EJS »
So, How do i access only certain parts of JSON response? is this even possible? I get the whole response to show up on my ejs template as: { "result...
(1) odpowiedzi
2017-07-14 08:07 Using javascript variable in EJS »
I am learning node and javascript and need your help in using javascript variable in my EJS file. On page load, I am making an ajax call to get me so...
(0) odpowiedzi
2017-07-14 04:07 pass variable from ejs to router for mysql query, expressjs »
I'm trying to send a value from index.ejs to router.js to query from mysql. (Node.js / Expressjs / EJS / MYSQL) index.ejs <div class="col-md-2"&g...
(0) odpowiedzi
2017-07-14 03:07 Sending information to server and getting processed data back using nodejs »
I'm trying to make an application using nodejs, express and ejs. What I'm aiming to do is submitting a form to the server, trigger a server function w...
(1) odpowiedzi
2017-07-13 02:07 Using functions in express (nodeJS framework) »
I am learning nodeJS, for that I have found a good set of turtorials. Right now it's teaching me about a good framework called express. To use express...
(1) odpowiedzi
2017-07-13 01:07 EJS Formatting in VS Code »
Currently I cannot autoformat my code when I am in an EJS file, no auto-indenting works. When I change the file type on the bottom right to HTML it th...
(1) odpowiedzi
2017-07-12 21:07 Horizontal Scroll CSS thumbnails »
So I have been trying to make a horizontal scroll menu for a bunch of thumbnails. I have found great info on how to make it scroll horizontally, howe...
(1) odpowiedzi
2017-07-12 18:07 How to create unique id for each html elements inside a for loop in ejs template? »
$(document).ready(function() { $('#hiddentext').hide(); $("#show").click(function() { $('#currenttext').hide(); $('#hiddentext').show(); ...
(2) odpowiedzi
2017-07-12 11:07 Printing out errors in EJS »
I have problem with printing errors in EJS because when i use in ejs <%= errors %> I am directed to Error 404 not found. Can someone tell me how it...
(0) odpowiedzi
2017-07-11 12:07 NodeJS JSON is local when it should be global »
I'm working with nodeJS express ejs. I have a problem with my JSON which is not populated with data before rendering my ejs file. app.get('/', functi...
(2) odpowiedzi
2017-07-11 12:07 How to set variable in view in EJS »
I have below line of code i don't know how to use data in js files which is send to report view.actually i want to draw a chart in report view using b...
(1) odpowiedzi
2017-07-10 18:07 Using percent sign in EJS »
I'm having difficulties getting my code to run. I'm importing a JSON object alkodata, which is parsed from a .xlsx file. It contains a alkodata.alko...
(1) odpowiedzi
2017-07-10 05:07 "Error: No default engine was specified and no extension was provided" When trying to do Server Side Rendering in React »
Hi I'm trying to do server-side rendering in my react app but I get the error Error: No default engine was specified and no extension was provide...
(2) odpowiedzi
2017-07-09 21:07 Stringify does not stringify the virtual populated object »
This is my object which is passed to view: app.get('/view_add_requests', isLoggedIn, function (req, res) { var my_id = req.user._id; // this is...
(1) odpowiedzi
2017-07-09 04:07 Client Side Javascript on EJS-Express »
I have already post this question before but nobody answer it, please it is driving me crazy. I am using EJS as templating engine for my node express ...
(1) odpowiedzi
2017-07-08 18:07 When using EJS script within span tag, why span tag class does affect result? »
This code works <span> <% if( !first_name && !last_name ) { %> login required! <% } else { %> Hello. <%= ...
(0) odpowiedzi
2017-07-08 09:07 Render mongodb documents with varying schema »
Has anyone come across an elegant way/library to render Mongodb documents with varying schema ? I am basically using NodeJS+Express+EJS and would lik...
(1) odpowiedzi
2017-07-07 16:07 FIREBASE WARNING: Exception was thrown by user callback. TypeError: req.next is not a function »
I am stuck in Firebase Warning. Can any one please assist me here ? Error: TypeError: req.next is not a function Below is my database structure: ...
(0) odpowiedzi
2017-07-07 12:07 How To Call Javascript Function From Another File in EJS »
I have a question regarding EJS and how to call a javascript function from another file. Let's say i have a button, <button onclick="click()">...
(0) odpowiedzi
2017-07-06 10:07 How to display errors in a modal popup after form is posted in node js using ejs templating? »
I have a form in a modal popup. User can submit the form via post method, how do I prevent the modal from closing and show the errors in modal popup i...
(0) odpowiedzi
2017-07-05 14:07 Argument passed in must be a single String of 12 bytes or a string of 24 hex characters »
I am using nodejs, expressjs and I am using two different server one is for ui and another one for backend. I am trying to delete the data from the li...
(0) odpowiedzi
2017-07-04 13:07 Javascript EJS string literal »
I am trying to pull a graphviz format string from my database and pass to a javascript function on my browser front end. I am using NodeJS and EJS as ...
(3) odpowiedzi
2017-07-04 09:07 Precompile handlebars and avoid runtime dependency? »
I've been using EJS to precompile templates and serve a bundled javascript file with no other dependencies, not even EJS itself. It's just a function ...
(0) odpowiedzi
2017-07-04 01:07 In Node.js, res.render is returning a 404 error on router.get »
I'm building my first Node application and having some trouble displaying the page that I want with a GET request. I have installed ejs (opinions welc...
(2) odpowiedzi