Category "javascript"

Why is this 2D array filtering not working?

I have this 2D array and I'm trying to filter it, but it's coming out unfiltered: Data: [ ["Val #","Val #","Val #","Val #","Val #"], ["SO-000379-001A-047-1","

Display Math calculation on a HTML Element with Javascript

I got the following code that calculates a percentage and I want to show the correct result on a html element (p). This is what I have but it's not displaying a

Remove Hypen in GUID Power Automate

"c2ecc88d-88c8-4096-912c-d6f2e2b138ce" How do I remove the hypen in the above GUID? Here is what I tried below: replace(variables('GUID String'),/-/g,"") con

Remove redundant legends on the chart using generateLabels with ChartJS v3

I have a chart as follows, I only need one pair of legends (data 1 and data 2) to show on the chart. In ChartJS v2, I can use generateLabels like this but it do

Paypal Checkout onShippingChange won't work with Ajax-Call

When a customer changes the shipping adress in the paypal checkout I am fetching it with "onShippingChange". However when I check the given adress and deny it o

Cannot add cli parameters to DataSourceOptions in TypeORM

In the typeORM documentation a cli parameter can be added to DataSourceOptions according to https://github.com/typeorm/typeorm/blob/master/docs/data-source-opti

Web Crypto Api fails to verify signature after converting from string

I am storing my data, including the signature in string format, and after converting the signature to and from strings following the MDN Documentation the verif

Stripe Construct Event: No signatures found matching the expected signature for payload. Javascript, Express

I get an error whenever I try to construct the stripe webhook event: No signatures found matching the expected signature for payload. Are you passing the raw r

Javascript: Correct syntax for making editable custom properties (on click, toggle colour of Leaflet GeoJSON object)

I've written the following javascript code using leaflet to make multiple red polylines with each having property called "active" which starts as true. for

Search button wont use onclick

I have this js file coded and when I try to call to my search button, nothing happens when I click the button! No error or anything just a clickable button. Any

Filtering google sheets import data before import

I have a script that imports data from a google sheet. Before importing the data into the new sheet I would like to filter it. In Column2 are our Cost centers l

Does a javascript library have to be written also in javascript?

If not, then how is javascript able to run code that is written in a different language?

How to add methods dynamically to a javascript object

I have a scenario that need to add new methods to an object dynamically. Basically, this new method will be passed as parameter to a function. Then inside the f

How to add types to Cypress.env?

I have this cypress.json config file: { "env": { "example": "Hello World!" } } In my tests: Cypress.env("example") Can I add any kind of type defintio

Having trouble returning to the initial dataset with chartjs-plugin-crosshair on reset zoom

Did anyone have the chance to work with the chartjs plugin - chartjs-plugin-crosshair? I'm having trouble after having zoomed in the datasets several times and

React Components Rendering Error in Electron-React-Boilerplate

Good Afternoon all, I built a React.js web music-player application a while ago, and now I am transforming my old react application into a downloadable des

this script, it's a code that I'm updating from V12 of discord.js to v13

I want to understand the reason for the error, so if it happens again, you can correct it, the following error appears whenever I use the !whitelist command (my

Using 3rd party lib file in NodeJs and getting LNK2001 error

I have been searching for an answer for a while and couldn't find anything that worked. Here is some background: I am trying to build an electron app that can u

Retrieve two foreign keys nodejs sequelize

I have a route and I want it to send two primary keys as foreign keys to my orderline table. I have three tables a customer, address and orderline table. an ord

TypeError: Cannot read property 'title' of undefined NextJS

I've been trying to build this blog app, Before is fine and in the dev environment is also fine. But, as soon as i try to build it for production it caught in t