Category "javascript"

How can I re-distribute values within a charts.js pie chart when a legend item is turned off/on?

I have distributed the data across the pie to equal 100% in total ( I think lol ) please verify that's correct if you don't mind. But I want to be able to re-di

Python & Selenium: How to get values generated by JavaScript

I use Selenium in Python for scraping. I can't get values though these values are displayed on the browser. So I checked the HTML source code, then I found that

How to remove the selected data from saved data when we click on button in a selected one

In my application I have saved the data when we click on it(we can add the multiple data by entering some data and save the multiple data by clicking the save b

Text and images not coming through correctly for VUE 3 Javascript

I have been trying to get the text and images to display correctly on my Netflix app, I am using VUE.js 3 to achieve this, however, there is something wrong wit

Early return from a subscribe block in a function

I am new to JavaScript. I am trying to do an early return on error from a subscribe block. This is what I have public doSomething() { this.updateData(data)

How do I get the POST data from a netlify serverless function?

Here is the code for my server which works fine. I am trying to achieve this with netlify's serverless functions which I have pasted further below. CODE ON STAN

Stop cellRenderer to apply on all the rows in angular

I am trying to make a custom component in ag-gird which consists of two radio button. I wanted to make selection for each individual row, so I have tried both c

MS Teams Bot -- Is it possible to invoke a botMessagePreview from a task/submit activity as opposed to from a composeExtension/submitAction activity?

I am building a messaging extension in Teams that uses task modules and sends adaptive cards. I want to invoke the same task module from both a messaging extens

expected { Object () } not to be empty - WebdriverIO - POM - Chai

I am currently using WebdriverIO with POM and Chai expect/asserts. I have not been able to get my chai assert to work. expectChai(watchesPage.infoTitle).to.not.

how to store 16 bits buffer to PNG file using sharp.js?

I'm using sharp.js to create PNG images in node.js from a file containing a 16-bit RAW data map. fs.readFile(myFolder + "frame1250.dat", (err, buf) => { le

Trying to position searchbar in nav

I made a nav bar, and I'm trying to add a search bar to it, but I can't seem to position it. I'd like to have the search bar show on the right side of the nav b

How to set up the counter when it is detected

In my project, there should be a counter. I have used the "reveal function". I want the counter to start when it goes to "reveal function". And when the bottom-

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