Category "javascript"

Vue3 CoreUI CMultiSelect submitting unintentionally when 'Select all options' is clicked

I'm fairly new to coding in Vue.js (3) and the project I have stepped into uses CoreUI for Vue as its main framework for forms and displays. I'm not sure if thi

Setting up a counter in a document and then retrieve it using Firestore: Would this be alright or would this be too expensive?

Under the orders collection, I created a document called counts which would store the counts for the status of the orders: I then created a function to increme

How to use same id multiple times in different div in a single html file

But the browser is only considering the first id, i have different buttons in my html file which will work as a pop up form.

How to pass data from html web resource to dynamics 365 ce

I want to pass data from my dynamic html table on button click event to model driven app account form in dynamic 365 crm. But I'm not be able to pass the data.

How to select the column has value other than the header in google sheets?

I got responses from Google form into Google Spreadsheet. I want to filter out the "Weekend" and "Workday". For the "Weekend" days, I only want to select the co

Custom edge detection for React tooltip causes page to "flash" occasionally

So I created simple edge detection for a tooltip that is part of a charting library. I can't use tooltips that already have implemented edge detection (like MUI

To Discord.js master [duplicate]

i got an error. PLZ HELP ME!! I tried the slash command bot. And i have been getting this error. I have tried hard to solve this error. I gave

Return not waiting for if condition

any one can help me.. I am developing a small project in Electron js. as a beginner I could not find any solution for this issue. I have search a lot similar pr

adding sound effects in agora web sdk [closed]

I have a web meeting app called TweetUp made using Agora App Builder. Now, I want to add sound effects on user join, user disconnect, notifica

Add an element to a const set

How would you add an element to an existing Set when defining it? For example, if I have: const s1 = Set([1,2,3]); const elem = 4; const s2 = s1 + elem; // ? I

What is the order of execution/control flow of "await" in javascript?

I have this piece of code and I'm struggling to understand why the log order is "1,3,2". (async () => { const doSomething = async () => { cons

Access value from a string object - Javascript

Not sure why I am not able to access the keys from a string object data looks like this I am getting this data from a python variable const data = '{regression:

Running a for loop within a Puppeteer test

I'm trying to run a for loop within a Puppeteer test that sends values to a search bar: test('test one', () => { var results = [""] var fuzz = ['ap

Add Promise-Chain part in reuseable function

I got a bunch of functions which consist of a simple promise-chain which is mostly individual, anyway for all my functions a small block in the promise-chain is

Parsing a string into a format to be able to get data from JSON structure

So i was struggling to get my code to recognise this string sent from the front end of my site to the backend as a method to get some data from my JSON file. Pl

Nextjs Idle time

I have a Next.js platform. On refresh, it takes around 6 seconds to load the page. So I was debugging to find out where the delay was to know what I could do to

How to manually call httpTrigger Azure Function within another

I have a JavaScript httpTrigger Function on Azure that I want to call in another httpTrigger Function. Both are in the same resource group. I know about Durabl

How to manipulate Json nested attributes in a JavaScript UDF in Snowflake

I have to write a JavaScript UDF function in Snowflake that receives a variant as the argument and do some value changes for a few keys. All is good but there's

CSS overflow property breaks my interactions with elements in chromium browsers

I don't know why but, when I add an overflow property to my div container, then each element inside is not interactable (it just happens on chromium browsers, i

How to setup Flowbite with Nuxt? [closed]

Here is a sandbox with Nuxt and Flowbite. Imported according to instructions from Flowbite The problem is that the styles of the flowbite comp