Data dodania Pytanie
2017-11-24 22:11 Refreshing a div of textarea result but avoid updating textrea using jquery »
I want to refresh a specific div which consist of messages between two users but don't want to refresh the whole page since it clears out text from th...
(0) odpowiedzi
2017-11-23 17:11 Provide custom functionality to lookup EJS view files »
When using ejs server-side with nodejs, without an application framework, is there any way provide a custom function to lookup view files? I would li...
(0) odpowiedzi
2017-11-23 12:11 NodeJS retrieve JSON and serve to EJS template »
my purpose is to get a JSON and serve it to an EJS file. This is my code: //server.js users = require('./controllers/users.js'); global.app_root ...
(1) odpowiedzi
2017-11-23 05:11 express js routes: displaying a user input in an ejs page »
How can I display the result of an input search with express js? I have defined 2 routes: app.get('/', function(req, res){ res.render('index',{ titl...
(1) odpowiedzi
2017-11-22 14:11 Express share ejs templates between multiple projects »
I am building a large app that has been developed in multiple sub apps divided by sub domains. sub1.domain.com, sub2.domain.com, sub3.domain.com. The...
(0) odpowiedzi
2017-11-22 00:11 Views not refreshing correctly using SailsJS »
in my code, i have a view called "show.ejs" which shows client details. the proble; now is that if i update client details (image, associated docs, .....
(2) odpowiedzi
2017-11-21 21:11 How to pass post results from one html to other html? »
I want to pass results (return value of POST) from one page into other embedded page, and I don't know how can I do it. The structures look like: mai...
(1) odpowiedzi
2017-11-21 07:11 "google not defined" error in maps api in ejs »
Why am I getting the error that 'google is not defined' when using the Maps API? I tried removing the async in the script tag like in some other posts...
(0) odpowiedzi
2017-11-20 14:11 How to add eventListener in javascript? »
I am a newbie in frontend issues. When the user changes this html input field, I would like to send the value of the data that he has changed. Cur...
(2) odpowiedzi
2017-11-20 07:11 EJS Variable Throws Error Even Though It Renders Properly »
I have an array of objects I am trying to iterate through in an ejs template, but I keep getting "Reference Error: bills is not defined". Other Stack...
(1) odpowiedzi
2017-11-19 01:11 how can I divide strings from array with a comma in js/css? »
I'm using ejs template engine to populate data on my page. My json file contains the following fields: var PhotosSchema = new Schema({ photo_url: ...
(2) odpowiedzi
2017-11-17 16:11 Asynchronicity of a Mongoose Promise »
First, pardon my slightly ambiguous title; I could not find a more appropriate one: Scenario I am using Mongoose to fetch some data and then render ...
(2) odpowiedzi
2017-11-16 23:11 Cannot read property 'substring' of undefined »
I have the following code that is causing me an error stating Cannot read property 'substring' of undefined <div class="extra"> &...
(2) odpowiedzi
2017-11-16 15:11 ExpressJS - Call an outer function in router.get and render its data »
I need to call functions in order to render mysql queries data to my views instead of having the query functions inside the router.get How can I call...
(2) odpowiedzi
2017-11-15 17:11 Load scripts in ejs file dynamically »
So here is what I want to do. At the beginning of the application I want to check some condition and load the corresponding script file in .ejs page. ...
(0) odpowiedzi
2017-11-15 16:11 How to log data from MongoDB in server file using Node »
Logging data in my mongo database using db.pollinfo.find() is working, but when I run this within my server code it doesn't console anything. Another ...
(0) odpowiedzi
2017-11-15 07:11 how to build A4 look pages by using ejs »
I am using the ejs to create the page, by using same like http://lresende.blogspot.ae/2015/01/nodejs-building-html-site-template.html and I have a dy...
(0) odpowiedzi
2017-11-14 23:11 Access a JS variable inside an html or ejs page »
I have a js file with JSON object like- say main.js const person = {}; person.AGE = '17'; person.GENDER = 'Male'; The file is loaded in .ejs file ...
(1) odpowiedzi
2017-11-14 03:11 ejs: Only add class 'active' to first image of image gallery »
<div class="placeImgCol "> <div class="slider-outer"> <img src="/images/arrow-left.png" class="prev" ...
(2) odpowiedzi
2017-11-13 12:11 Render EJS page after AJAX POST »
I've implemented an Ajax call in my code to send information on the submit event of a form, but now I need to render o redirect to a specific EJS page...
(1) odpowiedzi
2017-11-12 19:11 how to include variable in connect-flash message to create dynamic link »
I am struggling to create a dynamic link (include variable :id) into error flash message. The link should redirect to existing entry. JS req.flas...
(0) odpowiedzi
2017-11-11 16:11 Can i send variable to EJS include for use CSS Modules encapsulated? »
I use genarated html pages from EJS with gulp and CSS Modules. I can create encapsulated class names like _menu_sdf9w3 from JSON file, generated with ...
(0) odpowiedzi
2017-11-11 04:11 escaping malformed URI reference »
I followed a youtube tutorial on webpack and got a linter error in my HTML stating: escaping malformed URI reference for this image tag: <img ...
(0) odpowiedzi
2017-11-10 16:11 The swift when i use Beautify in my EJS file (with brackets) »
I have a problem with my brackets and EJS. The code when i use Beautify : <% if ( message ) { %> <%= message1 %> <% } ...
(1) odpowiedzi
2017-11-10 15:11 How i can select multiple arry in jquery? »
Hi guys i need to select the name and event and the email and search in them not just one of them as you can see when i put getElementsByTagName("td")...
(1) odpowiedzi
2017-11-10 06:11 Is there a way to send Error Code to front-end when the request is from jQuery AJAX »
This is my code: app.post("/login", passport.authenticate("local", { successRedirect: "/dashboardView", failureRedirect: "/errorView" })...
(0) odpowiedzi
2017-11-09 06:11 Javascript function not being read from ejs html file in Node »
In my html, I have a button that onClick calls a function with parameters that I pulled from my server side and passed it into this client page. I han...
(0) odpowiedzi
2017-11-08 15:11 Using an ejs partial template breaks JSON.stringify »
I'm using an ejs template to do server-side rendering within a sails app. In the template, I'm sending along a var inside a script tag to use on the c...
(0) odpowiedzi
2017-11-08 05:11 Send image link via Express and display with EJS »
I am trying to make a quiz app and I am using the MEAN stack. my server will send an object containing details pertaining to the questions - answers, ...
(1) odpowiedzi
2017-11-08 04:11 EJS does not render value returned from res.render »
I'm getting the page redirects correctly however when I'm going to list this result in the front-end the value is not shown just the command of the EJ...
(1) odpowiedzi
2017-11-07 16:11 Materialize Autocomplete: Add Values Dynamically »
I am creating a node.js web app with MongoDB, Express, EJS, and Materialize. I am needing to create a form with an autocomplete input. I am able to dy...
(0) odpowiedzi
2017-11-07 10:11 Get next document in Mongodb using an assigned Model variable »
I'm using Node.js with express that has a mongodb database and mongoose installed. I have the following Model: var lectureSchema = new mongoose.Sche...
(0) odpowiedzi
2017-11-06 21:11 Passing variable from app.js to ejs file into a script tag »
I'm trying to pass variable which is defined in app.js into a script tag inside and ejs file. So the app.js in short looks like this: //app.js var ex...
(2) odpowiedzi
2017-11-06 03:11 Embedding CSS and shortcuts (/r/n) within variables from DB »
I'm passing through strings from mongoDB to my rendering page, however 2 things are not working for me, and both of them I'm pretty clueless on how to...
(0) odpowiedzi
2017-11-03 06:11 How to use socket.io with only EJS without JS code? »
Here is my code in EJS which receives data in real time from my node server based on certain parameters. <!DOCTYPE html> <html lang="en"&gt...
(1) odpowiedzi