Category "javascript"

How to crawl the content of the page?

I hope to climb this page, but I don't know why I can't climb it successfully. I see a nice Web Page, I want to get it, Facebug555 I have no Python background!

Instead of adding value i'm replacing the value of array

Hi all i'm trying to get an array of Sizes and Color which is inside an object. So when we click on the input a handler will be call i.e., clickHandler() but th

Vue Array Class Proxy Not Reacting

I have a class that extends Array, and as part of it, I want to intercept changes that are made to its properties, so I use Proxy, which is what I return from i

Handling inline URLs with Next.js

I'm building an ecommerce platform where users will be using both our domain and their own domains like below. ourplatform.com/username theirdomain.com I'd like

Can't generate base64 string from react signature canvas in react

I am working on a react project for taking a signature from users. I am using react-signature-canvas to sign users. I want the signature data to be saved in th

How to resize a set of grid boxes to fit its parent container when a certain number is provide on prompt command

How do I fix this code? Regardless of the user input from 1 to 100, the grid should only fit into the parent container, and it should not expand the height or w

Dynamically access object property using variable

I'm trying to access a property of an object using a dynamic name. Is this possible? const something = { bar: "Foobar!" }; const foo = 'bar'; something.foo; //

Javascript objects equality vs using the spread operator to create new objects [duplicate]

When I have an object defined as such, const obj = { first: "hey", second: "hello" } and I do not wish to modify this but create a ne

How to implement this function declaration or function expression with arrow function? [closed]

<p class="qn"><a href="#"> Question:What is JavaScript?</a></p> <p class="answ "> JavaScript is a ligh

How to solve map loop not working to print data ( component ) ? React

I have three componente ComponentFather ( grand Parent component ) ComponentChild ( Child component of ComponentFather) ComponentChildChild ( Child component of

API values to set opacity levels to show overlapping points in highcharts scatter?

Looking at the demo for scatter charts I can see what when two points overlap they become more opaque: https://www.highcharts.com/demo/scatter I'm pulling data

spread operator vs immutable.js

It seems like when using redux with react, immutable.js has become almost a industry standard. My question is, aren't we making changes to our redux states immu

Smooth Page transition with zoom in animation in React js

On my product store spa web app I want smooth zoom in page transition. Like when the product card or the detail button is clicked , it will take the user to the

Change options when I select a category using Javascript (Country/State)

Im trying to hide some options when I select a different country. These options are the states of this country. But, when I select the country, it doesnt showin

Able to proxy my React app in localhost to heroku server but not on firebase

I was wondering if there was a way to proxy my firebase-deployed app to redirect all requests to a heroku API URL. { "name": "denrol", "version": "0.1.0",

Deleting row in one sheet if cell value is found in another sheet

I am trying to delete rows if cell value is found in another sheet via App Script. But the code is not going through complete data in history sheet. function de

Firefox (geckodriver): How do I inject JavaScript functions into a page so that they persist upon return from 'executeScript'?

I have a Selenium Java library that includes a JavaScript "glue" library that enables JavaScript functions to throw serialized Java exceptions. This enables muc

Resizing THREE.js Object using HTML div

I have two divs that I want to place side-by-side, and one of them contains my THREE.JS window/canvas. Basically, I don't want the THREE.js to take up the entir

OpenSea Error - Please use providerUtils.standardizeOrThrow()

I'm having trouble using the openseas.js library. I'm trying to do a getAsset call on a random asset on openseas I found, but I keep getting Error: DEPRECATED:

I am getting "AssertionError: Expected transaction to be reverted with Username " when I am testing my solidity code

When I am running npx hardhat test on the below smartcontract I am getting AssertionError: Expected transaction to be reverted with Username is taken please try