Category "javascript"

VSCode API: Editor.edit editbuilder.replace fails without reason (possibly due to formatting?)

In my extension I want to edit the document on a few specific document edits. My actual use case is a bit complicated so I have created a minimal example. The c

Sync issue with iframe in Chrome and Edge

the following script is used to load in a IFRAME a web application. function openCashier(destination) { postIsAnonymous(function (data

Electron Remote process with user input width and height not working

I am having a problem with using remote windows in electron I am trying to process user input ans use that input to create a new window with a certain width and

Getting a NodeList of the HTML tags in Mithril

Is there a way of having a NodeList of the HTML tags in Mithril? I need to get the width of the blocks. Something like that on vanilla js: const blocks = Array.

Dinamically created cell does not add the event listener correctly

Am I doing it incorrectly here? According to the devtools the cells have no event listener attached. function functionName(numRow) { for (let i = 0; i &

Is adding a scroll eventlistener bad for performance?

Is it true that adding an event listener on scroll like the bellow example is going to fire 1000s events and is bad for performance? window.addEventListener('s

video.js and video-youtube.js throwing "Cannot read properties of undefined (reading 'videojs')" when loading page

I'm trying to play a Youtube video using videojs and videojs-youtube. I've installed the latest versions with npm (videojs 7.18.1, videoojs-youtube 2.6.1). I'

How to render blocks of data from Fetch resource whitout re-render what is already in the screen?

I'm consuming an API, and it returns an array whit length of 370. I want to start rendering only 15, and then, when the user scroll down, render more 15, and so

Inserting a JavaScript variable as part of an HTML src tag in Django

I thought this would be easier, but clearly I haven't touched JavaScript/HTML in a long time. I am closer with the following code to getting this to work, yet i

near-api-js Failing to connect to near

Was making a svelte implementation of a near app. We have a button that connects to the testnet network. It will open wallet to sign in. When successful, it wil

How do I get PrimeVue ScrollPane to Scroll to the bottom as items are added

Using this SFC in Vue 3 I have been unable to get the scroll panel to stay scrolled to the bottom as the array of events expands. I'm wondering if i may just ha

How to open different parameters in google search same tab using javascript?

I need to open different search parameter in google search same tab using java script. No need to change http://google.com/search?q' in all time. I want show it

problem trying to make div responsive using CSS

I'm new to css / html / js what I'm trying to fix is the images placement in Div, i wanna make it more organized and responsive so when I resize chrome i wont e

Submitting a video with Thumbnail to Facebook Graph API for Instagram

I have this endpoint that is currently working flawlessly for both photos and videos. let mediaContainerUrl = `https://graph.facebook.com/${igUserId}/media`; A

React JS fetch post get error object object error

Post api work postman correctly but Rect JS post not working. Console get this error "POST https://localhost:5001/api/request 400 (Bad Request)" . I tried sever

Error: export 'control' (imported as 'L') was not found in '@raruto/leaflet-elevation' (module has no exports)

I have a angular application and need to use the custom leaflet package: https://github.com/Raruto/leaflet-elevation I am trying to use this in my application.

Keep all style of page inside page block element

I have this code : <div class="page-payment"> <div class="payment-methods" v-if="!pending"> <sepa-modal ref="sepaModal" /> &

react-currency-format is not displaying some of the html elements

I am developing a amazon clone by watching a tutorial. I have created a subtotal component where is used imported and used react-currency-format. inside the cur

req.cookies returns [Object: null prototype] {} even if the cookie is set

I try to store and read a cookie via cookie-parser. Setting the cookie is working fine. Its listed under the "Application"-Tab of the dev tools: But if i try t

get name name of cell from his range google script

I want to retrieve the name of a cell having his range. this is the range : var rangeOfCell = sheet.getRange(100,5); I want to know how to get his native(A1, A