Category "javascript"

how do I set up a grouping query on the server side. I want set up the query so I can use it for a pie chart in front end, using d3js

I am using this query to count and group occupation types. I need to do this in order to create a pie chart for the client side for the front end. I don't think

Can i loop a kaboom.js scene?

I wanna do multiple scenes in kaboom.js. How can I use an array to loop it and work? example: for (var i = 0 ; i<10 ; i++){ scene("level-%d",array[i], () =

How will I get the content ie the title of a tag while web scrapping with puppeteer?

I am following this tutorial. https://www.digitalocean.com/community/tutorials/how-to-scrape-a-website-using-node-js-and-puppeteer I am trying to learn how to u

iOS TikTok's internal browser doesn't activate javascript redirect to url

When my page is opened from tapping the link on a TikTok iOS app profile, my javascript redirect doesn't fire when the page is loaded in the webview. If you hit

Wait for previous dispatch action to complete

const onFeedSubmit = async (data: PostFeedActionProps) => { try { setPostingFeed(true); selectedBusinessList.forEach(business => {

Firebase Auth- Not adding users after signup

I am trying to add users with email and password function in Firebase but the information is not added once the sign up button is clicked. I have inserted the b

How to change the color of section of a SVG on click then change back after clicking elsewhere?

I am trying to figure out how to make it so when a user clicks a state on a SVG map of the US (specially this one) the state changes color. In addition when the

@nestjs/swagger cant be used with angular

We have a monorepo with nestjs, angular and libs. In one of those libs we defined all DTOs and some of them use mapped-types from @nestjs/swagger like OmitType

How to generate dynamic paths for non-default locales in Next.js?

I am building a Next.js app with internationalization using next-i18next. Pages are generated for all the pages of my site for both English and French, except f

Update a value in a nested field?

user :["id": 1, userObj:[{"bookid": 1, "library":"Oxford", "taken":true}, {"bookid": 2, "library":"Cambridge", "taken":true}]] I would like to update the value

How to override referrer in Google Analytics after refresh from window.location.href

Issue Steps: client search on google; google gives a link of mysite.com/page-a; and client clicks on the link At this point, the referrer is "www.google.com", w

While Using getElementById, How can I access a specific index in a array and reassign digits, after submitting numbers from a input felid with html

I'd successfully obtain arbitrary numbers from an input field while utilizing a callback function on the HTML side which eventually passed the original numbers

TypeError: Cannot read properties of undefined (reading 'webContents') Electron.JS

Im trying to make an event on keyPress (keyDown) (In electron) but i get this error. TypeError: Cannot read properties of undefined (reading 'webContents') He

Move another window and rebound if touch borders of desktop

I have a question. How can I create a program that moves a specific window, for example discord around the desktop and if it touches an edge it bounces?

Move another window and rebound if touch borders of desktop

I have a question. How can I create a program that moves a specific window, for example discord around the desktop and if it touches an edge it bounces?

How do i re-run useEffect hook if the localstorage value has been changed?

I'm trying to re-run the useEffect hook based if any new item has been added to the localstorage. My useEffect looks like this : useEffect(() => { //ge

meteor How to use upsert | Exception while simulating the effect of invoking ” TypeError: Cannot read properties of undefined (reading ‘_id’) react.js

I’m having trouble with upsert with meteor.js. I could update questions finely with the below codes but I won’t be able to insert new data. file in

Send Response to one Room does not work (Nestjs & Socketio)

My goal is to emit to only one client by using the default room that is being created by socketIo. The room id and client id match. I checked that by logging it

How to set req.body for a video tag?

I would like to set a req.body parameter for the request that the video tag is requesting. The Video tag requests at a certain route to request a video stream.

Remove specific HTML div when click on delete button using vuejs

So I have some input fields which are repetitive to fill different data. For every repetition, I also have a delete button. If I click on this delete button, th