Skip to main content

Questions tagged [ejs]

"E" is for "embedded." EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript.

ejs
0 votes
0 answers
16 views

Cannot populate through schemas properly

Listing schema : const listingSchema = new Schema({ title : { type :String, required : true, }, description : String, image : { type : String, default : ...
Priya 's user avatar
0 votes
1 answer
22 views

How to Ensure that Clicks on <li> Element in Nav Bar Correctly Redirect Authenticated Users to the Dashboard Page?

I'm experiencing an issue with my web application where clicking on an account icon behaves inconsistently. When I click near the edge of the account icon, it correctly redirects to the dashboard page....
BrainDebugger's user avatar
0 votes
2 answers
59 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
0 votes
0 answers
36 views

want to create an archived section based on the expiry date

There are couple of listings and they have an end date set with them . I actually wanted to create a seperate route for the archived section, so basically whichever listing crosses the end date they ...
khonshu's user avatar
  • 21
-1 votes
2 answers
46 views

How to print data from a form as a list item?

I’m trying to make this post feature where the user can enter a number of names, and each name will be printed as a list item in ascending order like this: Bruce Wayne Peter Parker Clark Kent I've ...
Abdul-Jalil's user avatar
-1 votes
0 answers
61 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
77 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
48 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
0 votes
0 answers
23 views

If i try to set src of an img variable that is not a valid url in ejs template, it throws an error [duplicate]

This is the code to fetch data from mongodb and then send it to ejs template to render. the data object is fetched correctly, I checked by console.log the data object,and there are no validators set ...
Rajneesh Bansal's user avatar
-2 votes
1 answer
46 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
0 votes
1 answer
23 views

Error while trying to create variables for title and price through Stripe embedded checkout

I keep getting the error, Stripe error :"You must specify either product or product_data when creating a price". I'm a bit lost in how to fix this issue and would very much appreciate some ...
Failenn _'s user avatar
1 vote
1 answer
42 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

15 30 50 per page
1
2 3 4 5
435