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

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.

-4 votes
0 answers
21 views

Good day. I'm Asadbek from Uzbekistan [closed]

I'm working on ejs express project and why when i set url to route handler like /contract ejs is being rendered properly but when i set api like /all-org/contracts is not rendring properly. My routes ...
Asadbek Asadbek's user avatar
-1 votes
1 answer
62 views

css doesn't apply on a page but apply to others

I'm following a course and I'm building this web site where I'm using ejs . I'm encountering 2 problems, first this page doesn't show and keeps loading until I stop the loading Second when it loads ...
amar chellihi's user avatar
-4 votes
0 answers
27 views

One particular route not working in express js and ejs [closed]

I am new to express and ejs and was trying to make a notes app, everything else is going all right but this particular route /files/:filename isn't working at all don't know why. Here is my express js ...
Devansh's user avatar
1 vote
0 answers
37 views

Cannot get data with Mongoose .populate()

Listing schema : const listingSchema = new Schema({ title : { type :String, required : true, }, description : String, image : { type : String, default : ...
Priya 's user avatar
  • 11
1 vote
1 answer
26 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
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
0 votes
0 answers
38 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
47 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
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
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
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
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

15 30 50 per page
1
2 3 4 5
435