Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
20 views

EJS isn't being rendered

I'm making a rock, scissors, paper game on the backend of Node.js with express server, frontend.js client-side, index.ejs and main.css files. I firstly want to render a string line of the result of ...
Yuval Yanay's user avatar
0 votes
2 answers
61 views

How to implement this npm library with javascript and NodeJS

I'm getting back into internet programming after taking a class on it a few years ago and I'm trying to implement a library into my website. For this project, I want to use these animated diagrams of ...
Octavia's user avatar
  • 11
-1 votes
0 answers
65 views

MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

I'm having problem using mongodb. I downloaded as said in docs for debian (i'm using kali linux) and first day it was fine. Everything i did worked well. Now for second boot up it started giving me ...
Lobiani1's user avatar
0 votes
1 answer
78 views

How do I create charts on my javascript website using data from mySQL database. Using EJS front-end

I am making a website where I can enter data for golf course greens, and then analyze it. I am using express in my backend to route to my ejs pages. I am also using a mySQL database to store the data. ...
Ben Northridge's user avatar
0 votes
1 answer
35 views

How to create a item in the Todo list

When you make a new item on the todo list it makes a new row but when you make a second one instead of making a new item on the todo list it changes the previous one. How would you go around making a ...
TroglodyteTerry's user avatar
0 votes
0 answers
51 views

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (CORS request did not succeed). Status code: (null)

I want to deploy my node.js on vps. my project tech stack is node.js , express , peer.js and socket.io I deployed the project on server but cors blocked error occurs Picture of the error is I am ...
Syed Talal Jilani's user avatar
-2 votes
1 answer
47 views

Node js ejs variable not define issue

i am mern stack developer and i don't have any experience in this field. I have tried all method to solve the below problem but it gives error my template file is <!DOCTYPE html> <html lang=&...
GAMING WARRIOR's user avatar
1 vote
1 answer
47 views

How to Include EJS Template Files in a Node.js Executable

I'm developing a Node.js web application using Express and EJS as the view engine. My goal is to create a single executable file that I can run on my webserver without needing to copy any additional ...
green1111's user avatar
  • 221
0 votes
1 answer
21 views

trix autofocus issue on expreessJS/ejs

I'm building a blog, with NodeJS/Express, and use Trix editor to handle writing and editing the blog posts. while attempting to edit a post trix rich text area automatically fouces; not allowing any ...
Kenan's user avatar
  • 23
2 votes
1 answer
39 views

EJS Rendering Error: "allChats is not defined" Despite Data in MongoDB

I'm working on a messaging application using Node.js, Express, MongoDB, and EJS. The goal is to retrieve chat messages from MongoDB and render them using EJS. However, I'm encountering an issue where ...
Shreyans Jain's user avatar
0 votes
0 answers
28 views

Details ejs not working after database query

I have a context in node.js called Blog which displays the blogs which users have inputed to the database on one webpage. I then have a method which after a user clicks on the blog then tries to ...
Russell Flaherty's user avatar
0 votes
0 answers
39 views

Session storage key value returns undefined even though it's set

Inside my products.ejs file in script I set key value to the current path. In my main indexjs file, in POST method to /login I try to access that path and use it to redirect to it after successful log ...
Boban Banjevic's user avatar
-1 votes
1 answer
41 views

Socket.io , CSS and UUID aren't working together?

I'm developing a project for real-time communication. I believe there is an issue with my server.js file that I was unable to decipher I therefore programmed it to use the uuid library to create a ...
Titan's user avatar
  • 3
0 votes
1 answer
31 views

Weird Javascript behaviour, when combined with ejs Objects

I am currently working on a small account system and I would like to display the user data in an overview webpanel. The user object is passed through directly with the ejs file to the client after ...
Paul's user avatar
  • 3
1 vote
1 answer
49 views

How pass Mongo collection to EJS template and then create select tag with customizable options

For a cookbook, I create a new recipe. Within that recipe, I enter the recipe name, the instructions, and then have an input field for the number of ingredients. When you enter a number, you clicked ...
padcoding's user avatar

15 30 50 per page
1
2 3 4 5
323