Category "javascript"

Convert ch to Px in css

Notes: I tried all questions & answers related to this topic. My Question very simple and clear 1ch = how many px? My sample code Relatest search article Un

How do I edit an array inside a cell in my React-bootstrap table?

As shown in the link below. I have an array inside a cell, when a click on those cell to edit them, they turns to [object, object] instead of their default valu

Can't change background video on button click

I am trying to change the source url of a video tag when pressing a button, but I don't have any luck. Here is the code: const [bg1, setBg1] = useState(true);

React.js giving TypeError : Cannot read properties of undefined (reading 'length')

<MDBRow className="mt-5"> {tours.length === 0 && ( <MDBTypography className="text-center mb-0" tag="h2"> No T

Load js scrips on component variable already in use

I have an angular app, and one component has to load some javascript files from assets. These scripts are loading some data into some graphs on my component pag

"Parsing error: No babel config file detected" when IDE not open at Vue projects root directory

I stumbled into a problem where in VS Code, when a Vue project is created and not open at root directory of the Vue project, babel.config.js wouldn't load and I

React function executes continuously and state keeps refreshing

I have kind of a weird issue in React. I am using the Blitz JS framework along side with Prisma for database stuff. I have a function that queries the database

NestJS controller not mapped

So I have an API that will be deployed in a docker container. This API has the authentications controller, simple and not something special. When I start up th

Random array element creation into Dom only once JavaScript

I've got a problem to insert a random array element into the DOM. I want it to only do it once for each array element but the code keeps fetching the element in

TypeScript map over Object keys and values: Element implicitly has an 'any' type

I am trying to iterate over object keys and values but TypeScript is shouting at me that: Element implicitly has an any type because of type string can't be us

passport.authenticate() isn't redirecting

I have a problem with passport middleware, when I am authenticating a user it doesn't redirect I have no idea what's wrong. Here is the code and whole project o

Apps Script google.script.run does not work within a Library-bound html file when triggered by other users

I have an authorization problem, but I can't figure it out. I have 50+ spreadsheets each for a separate user in our company. Each user spreadsheet has a contain

React - Drag corner of element to resize contents

I'm working on a feature in my React project where when a user hovers over an element, which could contain an image or just text, a resize button appears in the

React - Drag corner of element to resize contents

I'm working on a feature in my React project where when a user hovers over an element, which could contain an image or just text, a resize button appears in the

Google Model Viewer is not displaying output

So, I used Google's Model Viewer for displaying GLB files. But it seems to be throwing these errors: >Access to fetch at 'file:///C:/Users/User/Desktop/Untit

Discord.js v13 delete message after a certain amount of time

Up to discord.js v12, my bot would delete messages it posted like this : message.reply("text") .then(msg => { message.delete() msg.delete({timeout:

Change image onClick in React Js

I'm trying to create a page in my React Js project, with the content on the left side and content's image on the right side. So far, I was able to create a togg

switching the audio and video devices while recording is on in reactjs

I am creating a demo application in which user can record a video using ReactJs. I am able get the list of devices, and record the video. I am stuck and couldn'

Line chart point not aligned with x axis ticks D3.js

Hi I have a line graph but the point indicated by the line aren't aligned with the x axis points, they seem to be in-between the points. Anyone know that the ca

How to get id or information of table in filterDropdown in antd

So I am using antdesign table and I have three different tables based on the status(status: approved/pending/rejected) of the data but the columns used in these