Category "javascript"

How to style scroll bar in code using css?

I am developing an online code editor similar to CodePen, and I was trying to style the scrollbar of code mirror, but I don't know what is the exact line of cod

recoverTypedSignature function on @metamask/eth-sig-util is not working

It seems that every that the updated recoverTypedSignature function on @metamask/eth-sig-util is not working properly. As soon as I add it into the project, it

How can I make the picture sticky on scroll locomotive

I want to make my picture sticky when I scroll, I'm using locomotive-scroll and VueJS. So I want the content on the left to move but not the image on the right

The content overflows after the echarts line chart refreshes the page

The content overflows after the echarts line chart refreshes the page... It is normal to load the chart for the first time。but after refreshing the page,

ag-grid - Set cellRendererParams to data.field items so they are usable in cellRenderer

I am working on an AG-Grid using JavaScript and am having difficulty passing additional parameters for use in a cellRenderer using cellRendererParams and valueG

Why can't I display more data from firebase?

I know I am making a mistake somewhere. I am trying to display all food items from my firebase database onto my restaurant website. So far, I can only display "

Creating an array from each key in an array of objects

I have an array that looks similar to this: The array of objects is much larger and each object has more properties, this is the structure though. let arr = [

i can not pass parameters to backend ( from Ajax to IActionResult or JsonResult) .net core 5

i have problem i can't pass params to backend use fech or ajax call , but from another PC i can pass params, here is a sample from code Backend : [HttpPost]

Three JS Wireframe with rounded edges

I'm working on a project with 3D objects and decided to try using Three.js. I need a wireframe with rounded corners on a single axis. I've been able to achieve

Generating random whole numbers in JavaScript in a specific range

How can I generate random whole numbers between two specified variables in JavaScript, e.g. x = 4 and y = 8 would output any of 4, 5, 6, 7, 8?

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