Data dodania Pytanie
2017-02-16 18:02 Running Nodemon on IBM Power System i »
I am new to node development on power system i, was trying to get nodemon to work but errors out with following: # nodemon.js [nodemon] 1.11.0 [nod...
(0) odpowiedzi
2017-02-15 17:02 pass an object inside ejs include statement »
I need to pass an object inside an ejs include statement. I found a couple of questions on the same issue but I get a weird error when i do the follow...
(1) odpowiedzi
2017-02-15 10:02 How can I edit an .ejs file in the intellij idea »
I am trying to edit an .ejs File in the intellij idea I already installed the ejs plugin and restarted intellij but I can't open/edit the .ejs file I...
(1) odpowiedzi
2017-02-15 02:02 injecting ejs with a client-side variable »
My express router is making available an object on my ejs template called inventory. My client side is doing a ajax request that returns an object c...
(1) odpowiedzi
2017-02-14 22:02 .ejs React Native error »
I'm importing redux into my RN project and I noticed one of the ducks requires react-intl as well as one file is written in .ejs There is a line in t...
(0) odpowiedzi
2017-02-13 09:02 Change element style in EJS after POST action in Node - Express »
I have a form page that should show a Success Alert (Boostrap) after a user fills out the form and hit the Submit button. <form class="well form-h...
(1) odpowiedzi
2017-02-13 05:02 Create a new DOM element with EJS »
I am rendering a view with the EJS template engine based on some dynamic variables. For example: res.render("index", { dynamicVariable: ...
(1) odpowiedzi
2017-02-12 19:02 how can i access objects with in an array in ejs »
I have a objects within an array and I need to loop through the objects. How can I achieve this inside an EJS template? [{ "show": "589c062d...
(0) odpowiedzi
2017-02-12 03:02 ejs returning empty array but console.log returns an value »
I have a variable that returns fine in console.log() but when rendering it returns an empty array. function loadFestival(festSlug) { return Q.Promi...
(0) odpowiedzi
2017-02-11 22:02 How to string concatenation inside of EJS for loop? »
Looping through some data creating list items and buttons. I need to pass the button the id the of the item but I am not sure how to string concat. ...
(2) odpowiedzi
2017-02-11 20:02 nodejs to client side parameters passing without exposing as window variable »
I am using nodejs and ejs as the view template and mithril js as client side. To pass db result from node to client, i am assigning that to a window ...
(0) odpowiedzi
2017-02-11 15:02 ejs giving me object not array »
in ejs i'm expecting a variable to be an array but giving me an object. I have no clue. Could any one explain to me. <% var show_events = []; %&gt...
(0) odpowiedzi
2017-02-10 10:02 Can we use socket.io with ejs(embedded javascript) instead of html page in Node JS application? »
On client side in browser as ejs page: <script src="https://cdn.socket.io/socket.io-1.2.0.js"> </script> <script> var socket = io()...
(0) odpowiedzi
2017-02-10 07:02 JS file containing jQuery does not recognize EJS generated element ID Name »
In the file below, I iterate through a JSON file to generate individual listings. During the iteration, I create a button and set the element's ID usi...
(0) odpowiedzi
2017-02-09 21:02 Trying to Get Titles Capitalized »
This is my JavaScript that I borrowed from someone: String.prototype.toTitleCase = function() { var i, j, str, lowers, uppers; str = this.replace...
(0) odpowiedzi
2017-02-09 15:02 EJS Tags in external css »
I'm trying to refactor a nodeJs project and my css is in my .ejs file. I need to put some dynamic data in my css file. I need to have dynamic data in ...
(1) odpowiedzi
2017-02-09 05:02 How to use EJS <%= %> inside a jsp tag »
I want to display some Javascript code using <%=%> tag in a jsp page . but whenever I tried it jsp find it as its tag . How to resolve that ? I hav...
(0) odpowiedzi
2017-02-07 16:02 How can I show my data on my homepage in sails? »
I want to be able to show my posts on a list on the home.ejs like so. <% post.forEach(function(post) { %> <a href="/post/show/<%...
(0) odpowiedzi
2017-02-07 05:02 Nodejs/Express having problems loading CSS with ejs »
I am working on a site for my school and everything has been working great locally. Now we had to move our site to Google cloud but run into issues wh...
(0) odpowiedzi
2017-02-07 01:02 Trouble returning value with app.locals »
I'm trying to add a class to a div tag using a function I created which simply returns true or false and then uses that to decide what class to add. E...
(0) odpowiedzi
2017-02-06 20:02 Example of browserify implementation with Node.JS, Express, and EJS »
I'm having trouble getting browserify to work on my web app. I browserify in the terminal and it creates the bundle.js file. I put it in my public/j...
(2) odpowiedzi
2017-02-06 15:02 How to get the item id inside a foreach loop? »
I have a this problem for a long time and always solved it on a really bad way. When I have a loop that goes through the selected items (in this case...
(0) odpowiedzi
2017-02-06 00:02 Can't get Static Javascript file to Recognize Parse »
My HTML head is able to retrieve the file and communicate with the js file, but for some reason the js file stops working when I insert Parse. I'm usi...
(0) odpowiedzi
2017-02-05 20:02 why rendeing svg tag to an ejs file not recognized »
I try to use d3-node to make a chart in server side and try to render the new chart to ejs with following code: <%= svgChart %> when I use...
(0) odpowiedzi
2017-02-04 11:02 Date now + 1 month in nodejs »
this is my code in ejs file : <select class="form-control track-change input-lg" data-track="deadline" name="Deadline" id="Deadline" placeholder="...
(1) odpowiedzi
2017-02-03 23:02 How to escape ejs tags inside an ejs template string? »
How can we escape the ejs tags itself inside a template? In sails I would like to put the following code in the layout.ejs <!--STYLES--> <%...
(1) odpowiedzi
2017-02-03 19:02 Execution order of ejs within a for loop »
Consider this: for (let i = 0; i <= 5; i++) { console.log("before",i); res.render("index", { message: i }); console.log(...
(0) odpowiedzi
2017-02-03 16:02 Looping Through Array with EJS, But Want Specified Data »
I'm running an Express app that makes calls to an API. The returned data is passed to my front-end in EJS templates. The front-end also uses some jQue...
(0) odpowiedzi
2017-02-02 21:02 Ajax req.body result is {} »
I got the following jquery code: $('.enb').click(function(){ var isEnable = $(this).val(); alert(isEnable); $.ajax({ type: 'POS...
(0) odpowiedzi
2017-02-02 12:02 JQuery enable only button with value of True »
I got the following HTML code: <button type="button" class="btn btn-primary jumbotron-td-enable-button enb btnEnable" value="<%= enables[i]%&gt...
(3) odpowiedzi
2017-02-02 04:02 Can't get username from req.user to output in express »
I'm using ejs to try to output a username from req.user in a node express app, but it doesn't seem to be working. This is where my username and pas...
(1) odpowiedzi
2017-02-01 21:02 How do I loop through in ejs »
[{ Url: 'http://example.com', Shortname: 'shortname', Name: 'nameaaa' }, { Url: 'fsadfsad', Shortname: 'aaa', Name: 'fasfsad' } ] Thanks. ...
(2) odpowiedzi
2017-02-01 19:02 How to use a ternary operator to add a class to an HTML element in ejs »
I am new to using ejs. Have a menu an I want to highlight the current menu item. I have tried this: <li class=<% currentMenu == 'dashboard' ? '...
(1) odpowiedzi
2017-02-01 09:02 HTML list not showing bullet point on FIRST list item ONLY »
Title explains pretty much everything. This is a MEAN stack app. <!DOCTYPE html> <html lang = "en"> <head> <meta charset="UTF-8...
(1) odpowiedzi
2017-01-31 12:01 Express js render pug|ejs file throws Jquery error »
i'm having an issue with ExpressJs rendering and Jquery. my app.js (main file) is restapi=require('express')(); const pug = require('pug'); restapi....
(1) odpowiedzi