Skip to main content

All Questions

Tagged with
0 votes
2 answers
57 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
1 answer
76 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
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
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
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
0 votes
1 answer
164 views

how to retrieve ReadableStream data from res.body in JS

I am fetching data from my backend using fetch function and it returns a readableStream as response's body. How can I extract the data in that readable stream? I've tries using res.json method, but it ...
Abhay Sahu's user avatar
1 vote
1 answer
76 views

how to make a button submit the form value to the server but not refresh the page?

I've made an html button which gets triggered when I change the select tag's value. I just want to send information to the server and retrieve the corresponding data back, and use it on the same page ...
Abhay Sahu's user avatar
0 votes
1 answer
102 views

JSON.parse not parsing string of array of object

In my Node.js file route I am rendering an ejs file with variables passed as stringified array of object - let scriptArray = [ { charValue: 'a', encodedValueMain: 'g', }, { charValue:...
Abhay Sahu's user avatar
0 votes
0 answers
33 views

Getting function not defined error while rendering in ejs

I'm trying to render some elements based on data from backend in an ejs file: <% data.forEach(data => { %> <div> <div class="card-body&...
Siddhant Sahni's user avatar
0 votes
1 answer
45 views

Can't read value of POST

I can't get the values from a simple form. It has 2 files: APP.js and FORM.ejs. I am trying to receive the values from the form. APP.js: const http = require('http'); const express = require("...
raymond van ophoven's user avatar
1 vote
2 answers
66 views

'req.body' return '{}' after validation of a <form> 'post' method with express

I am starting my end-of-year study project (due by mid-July :)). I'm trying to make a small site, and to stand out I'm not doing it in php but with node.js. I discovered this technology and I am ...
Nicolas CARDONA's user avatar
0 votes
0 answers
32 views

how Get the user path when user upload an img instead of getting the img name in Node.js & express.js

When trying to get the user path to display the image on another page I write this code var bi = __dirname+req.body.image; but it gives me this my directory C:\\Users\\SulaimanAbdulRazzaqY\\...
Suliman Abdulrazzaq's user avatar
0 votes
0 answers
22 views

to call parameterized onclick function in html why use string format?

to call parameterized onclick function in html why use string formate? <td><button onclick="deleteArticle(this,'<%= article.articleId %>')">Delete</button></td> ...
Ankan Manna's user avatar
0 votes
0 answers
39 views

Unable to Link CSS Files in EJS Template

In my ejs file (result1.ejs), I can't link with css file or any other image and everything. Here is the folder structure (I removed some of the files that is not necessary to the question) project/ ├──...
Garfield's user avatar
0 votes
2 answers
51 views

Passing context through a URL to NodeJS Express

I'm trying to make an e-mail verification system using Node.js, Express and EJS. Currently, when a user registers, the server will generate a link, say https://www.website.com/verify=foo/ and then ...
Remfy's user avatar
  • 65

15 30 50 per page
1
2 3 4 5
150