Category "javascript"

React using state array without mutation

Can the below code be refactored so as to not mutate the state array. Basically, I want that as I navigate the app back and forth via props.history.push, it sho

How to set setUserProperty

To set the value for the user ID, set the value with setUserID and set the value. To get the value of the user ID also in the user property You also need to set

guildMember is not defined

I was trying to make welcome message when someone gets on my server but I am trying to do so it takes embed from another file. It says guildMember is not define

How the best and fast way to send multiple data into google spreadsheet?

I want to send multiple data using chrome extension into Google spreadsheet. I tried using loop but sometimes it's replacing the data in the current process. I

override javascript methods in mail/static/src/js/chat_manager.js of Odoo 11

I am trying to override 2 Javascript functions in the Odoo 11 under mail/static/src/js/chat_manager.js The first one is make_message function make_message (data

Is there any way to add ui-element, ElMessageBox confirm button click event?

When I delete a data from the table, I want it to pop up a warning in the middle of the screen first.Delete function is ready,i just want to add confirm button

Refresh Json Data in VueJsonCSV component - VueJS

I'm using the VueJsonCSV component to export this data to csv. The values for these are retrieved from Vuex Store. <template> <v-btn depressed> &l

why is the face drawn throught stencil buffer is rendered on top?

code: https://jsfiddle.net/yuqingzhijie/9wt7syn5/11/ https://jsfiddle.net/yuqingzhijie/9wt7syn5/42/ I'm implementing section drawing, but I don't know how to so

Chrome Extension manipulate DOM ONLY if tab is in focus

I have a Chrome Extension that subscribes to a WebSocket and pops a window when a message comes down that socket. This runs in a background script, so no matte

Show two different size of image when url is pasted in the textbox

I'm unable to resize the image. Here's my code document.getElementById('btn1').addEventListener('click', function(){ document.getElementById('photo').inne

LIQUID: How to hide an accordion if there is no content for it in the LIQUID file?

Code below does create accordion in Shopify product pages. I'm looking for a way to hide accordion if it has no content to display. Each accordion is an unique

Not able to display fetched data on page, React JS

I am unable to display fetched data on page. Here I am using ReactJS for frontend and NodeJS for backend. To store data I am using blockchain (hyperledger fabri

React.js: How to render new message at the bottom?

Currently working on a 1:1 live chat messenger. when i send a message its shows up at the bottom of chat where i want it to, but upon page refresh it returns to

How to update Brutto based off of VAT Netto and ilosc?

I want to update kwota brutto, wartosc netto and wartosc brutto based off of ilosc kwota netto and vat but it doesn't seem to work. I literally have no clue wha

Can var elements' be group together for styling on JavaScript?

I am trying to change the styling for my HTML elements without touching the HTML and CSS file. resultFirstName.style.fontWeight = "bold"; result

How to modify & replace the key an object by comparing it with other objects?

I have an array of object which consists some id's as a key. const sampleObj1 = {0011:[{},{}], 0022:[{}, {}], 0033:[{},{}]} const sampleObj2 = [{id:0011, name:'

Alternative to index signature

I have an array of object like this: [ { "bio": "Douglas Gerald Hurley is an American engineer, former Marine Corps pilot and former NASA astronaut. He la

Encountered a sub-selection on the query, but the store doesn't have an object reference. angular

I'm getting this error when I try to make some gql query: I have tried to change the angular version, but I need to implement gql in this version. without upgr

Vue.js 3: Store videos offline in a Vue PWA

I am using Vue 3 with Typescript. I am trying to show a video in the PWA. It works online great but when i try it offline the video is not loading. I store the

How do I access response information from COINGECKO API for coins with more than one word id?

I have 6 crypto coins I'm getting current price from CoinGecko's API I have spans inside of divs set up on my html page, where the price span html updates after