Category "javascript"

How to have the input value appear?

Hello I am new to coding and I have to do this an assignment for school, I am just a little bit stuck on this part of the assignment. I need to be able to make

checking array of objects

I wanted to check if each length of array of objects of inspectionScheduleUnitContactArtifactDto , if there is one inspectionScheduleUnitContactArtifactDto whic

Issue upgrading XState's Reddit sample from Vue 2 to Vue 3

After reading the XState documentation I followed the Reddit sample found at the official guide, here: https://xstate.js.org/docs/tutorials/reddit.html I was tr

Given a list of n integers arr[0..(n-1)], determine the number of different pairs of elements within it which sum to k

I'm tackling this problem and I can't seem to arrive at the correct solution. The question is: "Given a list of n integers arr[0..(n-1)], determine the number

hyperscript equvelant of jquery .on("click"

$( document ).ready(function() { console.log( "ready!" ); var counter = 0; $("button").click(function() { e="<p class='test' _=\"on

How to add branch lines to angular material table?

I am working on a UI (using Angular 10), where I have to show hierarchical structure inside a mat table. The HTML code is using mat table to show the data, and

ESLint: Plugin "react" was conflicted between

I have a React app inside a monolith npm component package. The React app serves as a demo site which consumes this component package as an integration step ove

Passing multiple params in react-router-dom like reactnavigation

Well, I'll get to the point with this, and I have a problem passing parameters to the browsing history For those with experience in reactnavication, you will kn

Access token missing from Keycloak context

I am trying to make an authenticated request from postman to my node, apollo, express backend. I am gettting an error saying that the user is unauthenticated. W

Getting hidden values on returned ajax results [closed]

I have a shipping estimator I am trying to reset via ajax on any cart change. I have the call and ajax working well on all of the page except

Remove Klarna Payments with cash on delivery method

I have a problem with a code. So I have five different payment methods in my site. When a customer select "Cash on delivery" as shipment method all the payment

Question for auto-resizing Textarea using VueJS

I'm trying to let the text area automatically adjust its height when the text value changes: <textarea ref="textarea" v-model="message"> </textarea>

How to make a button event handler in discord.js V.13

I create a function to send an embed message with a button and now I would like to create an event handler to detect when the button is clicked and execute a fu

ScriptUI - Integer number in slider percentage

I have a script that shows a dialog window with a slider bar, next to a static text. The text shows the percentage of the slider bar (0 to 100). The problem is

Using Shopify JS Buy SDK, unable to remove variant item from cart

I have a button to remove an item from the cart on my cart page, but I'm receiving this error: Variable $lineItemIds of type [ID!]! was provided invalid value.

NextJS fetching nested array of objects from MongoDB using mongoose and getServerSideProps

I'm trying to fetch an array of objects from MongoDB, using mongoose and SSP. One hitch is that all ObjectIds must be converted into strings. Currently I'm doin

Hardhat: ProviderError: The execution failed due to an exception

I'm deploying contracts with hardhat, but cannot use address type in contracts ProviderError: The execution failed due to an exception. at HttpProvider.requ

How to access document and element variable when using javscript kernel

When using the python3 kernel the following code works: %%js let b = document.createElement("b") b.textContent="Hi there!" element.append("A test:") element.app

How can I sort the order of links based on the user's number of clicks and save it to local storage using JavaScript?

I'm trying to add the feature to sort the order of links in a specific div based on the number of times a user clicked a link. It's to pin to top Favorite links

React Select Overlaps With Label

I am using react-select ^5.1.0 and my options and values are displayed well. I have a small issue when scrolling the options, a select word overlapps the option