Category "javascript"

How can I get all the object inside an object which is present inside an array and add the result into another array

I am struggling with an issue that is bugging me a lot. I am not good with JSON data manipulation. So the issue is I have an Array of multiple Object which cont

How do I automate loading all of a browser page that is dynamically loaded?

I am trying to automate paging to the true bottom of a web page which is dynamically loaded; that is, a page which takes multiple page-downs or Ctrl-Ends to get

How do i get the values of object in arrays react js

Object { rows: (1) […], count: 3 } ​ My api is giving me this count: 3 ​rows: Array [ {…} ] ​​0: Object { ELIGIBILITATE: "

Get id of tag using querySelector in Pug

I'm new to stackoverflow. My question consists of kml, and pug. My kml file looks like this: <Document> <Placemark id="LIB02"> <name>Agincou

SCSS variable export not imported in React

After a general package upgrade on my React project, SCSS variable imports in JavaScript stopped working. Imports themselves are still working, but variables ex

React: How to pass a pointer to one component to a second component

How can you pass a pointer to component 1 to component 2 (so that you can work with component 1 inside component 2, e.g. get its properties) <Component1 />

Jest spyOn with uuid breaking in 8.x

I have a jest spyOn with the uuid which was working in the version 3.4.0 after upgrading it to 8.3.2 the test breaks with the error Cannot spyOn on a primitive

Convert Base64 Image into LZW compressed TIFF images

i have a nodejs program that previously used sharp package to convert image to lzw compressed TIFF images as below. It gets the photo from s3 and converts to TI

How to Inject new element in SlateJS Editor DOM

How to inject new react component/element into SlateJS Editor DOM? I want to inject a new element within the SlateJS editor's DOM, not above or below. Most of S

Vue js render with different request

I am making an App with vue js and laravel using API,i am getting original data , but there is an optional parameter that i want to insert in the query to rende

Google Transliterate API for hinglish to hindi is not working

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://ww

Unable to setup NIH's Medical Condition API (with Auto-completion) in React App

I am building a react app right now and one of the features allows users to look up medical conditions. I'm trying to use the NIH's open-source API with their a

How to add OAuth 2.0 authentication with smtp to send email using javascript?

I need to add oauth 2.0 security in my existing email submission form. There are some other methods that I found online but as I am using smtp, I just want to a

CKEditor: [CKEditorWebpackPlugin] Error: Too many JS assets has been found during the compilation

I am updating the CKEditor packages in my Rails/React app from ~12 to the latest version 27. When running the app locally in my webpack-dev-server I see this e

Is there any solution of "JavaScript heap out of memory" & "Array buffer failed"?

error image I'm building a website with react. But suddenly when I entered npm run start after some time it gave me errors Fatal error: NewSpace:: Rebalance All

How do I set JSON data as a cookie while preserving the indentation?

I'm trying to set a cookie containing some JSON data, but I also need to preserve line breaks. I've got a way of keeping them and rendering them which works fin

Switch Statement Keeps Returning Undefined

I'm fairly new to switch statements in general but please could anyone let me know why my switch statement here is returning undefined? I feel like i've looked

How to preserve scroll-chain on overflow scrollable element on mobile?

I have this fixed height scrollable ul element which is for a video playlist. Scrolling works fine but when the user scrolls thru all the content they get stuck

Why getStaticProps giving error of "Failed to load SWC binary for win32/x64"?

I am using getStaticProps() in a Next.js app but when I run the app it gives ERROR:- warn - Attempted to load @next/swc-win32-x64-gnu, but it was not installed

Require minimum filter input length with TomSelect (like select2's minimumInputLength)

I have a webpage with a multi-select field for names, and to prevent biases, I want to only show list entries to users after they have entered at least 3 charac