Data dodania Pytanie
2017-11-02 02:11 Can I render JSON.parse data to EJS? »
I am new to NodeJS and Express (to coding, in general). I am trying to render data to an EJS view page so I can manipulate it in the front end. It loo...
(2) odpowiedzi
2017-11-01 15:11 Node JS : Error with res.download() after res.render() »
I'm beginning with Node JS, and I get an error : Error: Can't set headers after they are sent. You can see my code, the problem is with res.dow...
(1) odpowiedzi
2017-11-01 15:11 Sails Models, json.stringify works in controller, but not in template »
I'm having a difficult time using json.stringify(myModel) in an ejs-template. The problem I'm trying to solve is sending a copy of the data needed by...
(0) odpowiedzi
2017-11-01 12:11 cannot get socket.io working with express and ejs »
I'm new in node.js, express and ejs. I'm trying to add a socket.io communication but it doesn't work. The index.ejs is well displayed in the browser ...
(2) odpowiedzi
2017-10-29 21:10 Paginate list in .ejs file »
I have a list, generated by ejs <ul class="search-list"> <%if(movieList.length == 0) { %> ...
(0) odpowiedzi
2017-10-29 15:10 How to include external .js file to ejs Node template page »
I cannot find a way to include external .js file to Node ejs template. I want to put logic and data into object in external .js file, include that fil...
(1) odpowiedzi
2017-10-29 00:10 Displaying data inside textarea (ejs) »
I'm trying to get data (taken from mongo) to display into a textarea. It's purpose is so that I can edit data within the database without actually tou...
(1) odpowiedzi
2017-10-28 18:10 how to get specific data to html home page from mongodb database »
how to get specific data to Html homepage from MongoDB database? I have all MongoDB user datas in my HTML home page.but how to get specific user id
(0) odpowiedzi
2017-10-28 00:10 Passing json to EJS »
I'm trying to pass data from my database to the client(EJS template). However, the data isn't outputting, and I'm not getting any errors doing so. So...
(1) odpowiedzi
2017-10-27 22:10 Angular Error: $parse:ueoe Unexpected End of Expression with EJS »
I'm getting unexpected End of expression error when I pass nodejs data to to ng-init. I'm confident I'm doing it right however I'm getting the error m...
(0) odpowiedzi
2017-10-27 13:10 How to comment EJS code in WebStorm by shortcut? »
When I press Cmd + / then it looks like this. Is there any way to comment all the block that I want to make it as a comment by one shortcut in WebS...
(1) odpowiedzi
2017-10-27 00:10 EJS tags in javascript code »
I'm using Node.js and ejs for templating language. I feel like this is really silly and I should be able to solve it, but I'm stuck. I am having t...
(1) odpowiedzi
2017-10-26 21:10 Node.js EJS Partials »
I am sure that this is a problem due to my limited understanding of how EJS and partials work but I am facing what seems to be bizarre behavior in my ...
(1) odpowiedzi
2017-10-26 18:10 NodeJS working on Localhost but not working online »
I'm practicing NodeJS and trying to upload a landing page via FTP but it's not working online. Does anyone know if we have to do a special config for ...
(2) odpowiedzi
2017-10-26 15:10 Display data from different queries from Knex in EJS page »
var getTimer = function(owner, callback){ if(owner !== undefined) { knex.table('timer').where({id_owner : owner.id_user}).select().orderBy...
(1) odpowiedzi
2017-10-25 20:10 Can I link to a .ejs-page from a .html-page? »
I am making a webpage and I have been looking on stackoverflow on how to link to .ejs-files from a .html-file. People are saying the following In i...
(1) odpowiedzi
2017-10-25 10:10 Passing values from a view to Node without URL in Nodejs »
I am using nodejs with express and ejs. Every one on internet ask how to pass value from node to the view, but what about the opposite? For example,...
(3) odpowiedzi
2017-10-24 16:10 Compare key value array in ejs to combo selected value »
I have a route js where I define get function like this: exports.get = function (req, res) { var calls = [{ propertyTypes: function (acc) { ...
(1) odpowiedzi
2017-10-24 05:10 Pass data to ejs partials using Webpack 2 »
I am using Webpack 2 and ejs-template-loader I can get data for my page however I need to pass some section of data to one of partials. <% var da...
(1) odpowiedzi
2017-10-24 02:10 how to handle post data in client on express »
I am using express.js to built the website. i use .ejs as my front end and nodejs for backend i want ejs to interact with the nodejs server. I use get...
(1) odpowiedzi
2017-10-23 20:10 Can't sort menu items in hexo/ejs »
My site is based on a number of pages. Each one has front matter like --- menutitle: "Mediator" menuorder: 2 lang: "en" --- I want to build a navb...
(1) odpowiedzi
2017-10-23 12:10 How to send array Object from NodeJS to Javascript? »
I am trying to send my database output, which is an array to javascript file to display it in select options. I tried, response.render('/entry.js',{o...
(1) odpowiedzi
2017-10-22 20:10 Mongoose sort using a model variable and a forEach loop »
I have the following model: var lectureSchema = new mongoose.Schema({ name: String, image: String, url: String, description: String, ...
(1) odpowiedzi
2017-10-22 09:10 app.get(/) not rendering the index.ejs file »
I am quite new to node.js. I was just following the basic tutorial for express js. The problem i am facing id I am not able to render the index.ejs fi...
(1) odpowiedzi
2017-10-22 01:10 EJS not rendering ejs code on client side »
I tried rendering EJS code that I sent from home.js to home.ejs as a string but it didn't work. I'm trying this now but nothing seems to work. My code...
(1) odpowiedzi
2017-10-21 21:10 webpack fails to compile with some EJS tags in template »
Webpack fails to compile when I use some EJS tags in template. Such as <%# and -%>. new HtmlWebpackPlugin({ template: 'index.ejs' }), In w...
(0) odpowiedzi
2017-10-21 18:10 Automatic Serial Number Generator Using EJS Loop »
I want to Generate Automatic Serial number for my Registered Admins <tbody> <% Admins.forEach(function (Admin){ %> <tr> ...
(1) odpowiedzi
2017-10-19 23:10 Include one widget instead of excluding all others »
I have a couple of widgets in the sidebar. I do not want that some of these widgets show on some of my pages. I do not know how to write it more simp...
(1) odpowiedzi
2017-10-19 17:10 EJS, node js forEach loop on include »
When using this syntax to loop on a 'component' EJS is complaining that task is not an object but if replaced with task._id it's fine. Any ideas ple...
(1) odpowiedzi
2017-10-19 14:10 can't push EJS variable into array in html scripttag? »
I am trying to build an array with some test coordinates to use with with OpenLayers Overlays. This is the code: var parada = []; for(var i = 0; i...
(2) odpowiedzi
2017-10-18 12:10 EJS selecting only a sepcific category »
I have this piece of code. HTML: <header<% if ( current.source === 'features' || current.path[0] === 'index' || current.source !== 'custo...
(2) odpowiedzi
2017-10-18 07:10 How to send value with URL in ejs template »
I want to send a value with the help of which i get from my database <% pp.forEach(function(a){ %> <h1><a href="/users/gotospecifi...
(2) odpowiedzi
2017-10-17 21:10 Set up Express/EJS server »
I have a function which contains an array of objects, and want to bring them in to be used with the .esj/.htlm pages (though data variable I assume). ...
(1) odpowiedzi
2017-10-16 18:10 nodejs/expressjs update(crUd) operation is not displaying css files »
I am making a CRUD app in Nodejs/Expressjs, templating engine is EJS. The idea for the update is display user_id from a database and when admin clic...
(1) odpowiedzi
2017-10-16 12:10 Simple Express EJS Modal »
Hi I am new to Node Js and express. I have previously written web pages in Bootstrap and created some nice content. Now I want to create more advance ...
(0) odpowiedzi