Category "javascript"

can not loop through $slots object in Vue 3 to pass all slots from parent to child

I can not loop through the $slots object in Vue 3 to pass all slots from parent to child, the $slots object seems empty in the child component. How can I loop t

Replace All references to email Pentaho Jobs error checking in Repository

I have over 100 jobs (kjb) that reference an email address that is no longer active. I wish to globally change the email address dynamically using PDI (spoon) i

CKEditor 5, jQuery - find and replace text

How could I find and replace text in CKEditor 5 using JavaScript and jQuery? I want to find special character '@' in the text and replace all characters after '

Collapsing columns in a table without jquery by click and by url

for our intranet i've to do a large table with lots of columns. As there are many columns, i want to be able to hide some "blocks" of columns for better overvie

Ethers.js returns the same wallet address even if I switch accounts

I'm using Ethers.js to allow users to connect their Metamask wallets to my app. Here's the code that I have: import { ethers } from "ethers" async function con

add Array using for loop (JS)

I'm recreating a hangman game where I create a random word and conceal this with "". i.e if the word is "monkey" then the array should be ["", "", "", "", "", "

Global getter javascript

In javascript, you can set object property getters like so const obj = { get a() { return 1 } } console.log(obj.a) // 1 Is it possible to define a glo

React-Router-Dom <Link /> tag is changing URL but not rendering the Component

Header Component import React from "react"; import { BrowserRouter as Router, Link } from "react-router-dom"; import { ReactComponent as Logo } from "../../asse

Not able to click on a button inside iframe using cypress

Not able to click on the button inside iframe using cypress HTML <button class="MuiButtonBase-root MuiCardActionArea-root jss9" tabindex="0" type="button">

Javascript function seems to prevent page from loading

So I have the following javascript that, as an exercise is supposed to multiply 2 object as matrices. The Mat4 object stores a 4 * 4 matrix as a 1 * 16 array. f

Alignment of column for PDFMake to sit at bottom of page

I am having some issues with figuring out how to set a column with content to the bottom of my PDF. This is not on every page, just the last page of the PDF, so

Google Oauth popup cancellation callback

When using Google Identity Services (GSI) I can display a popup to ask users to connect with their Google account. This is pretty well documented and it works w

Google Chrome's console.log() prints DOM nodes inconsistently

Not a duplicate of Google Chrome console.log() inconsistency with objects and arrays, since this question is not about objects and arrays. Here is a simple HTML

Draw line between 2 elements in reactJS

I'm working on a flights agency website, and at some point I need to draw some lines between elements that are being added dynamically. See the image to underst

When does an element become available in dom after using vue v-if

When does an element become available in the dom after using a vue v-if? I would have thought you could do a query selector on the element after the v-if evalu

Images not showing up in Github

I'm trying to upload my website in GitHub but the images won't show. I've tried a lot of the solutions posted here (changing path, changing png to PNG..) but no

Footer is sticky, until I expand my accordion (html, css, vanilla js)

Basically my sticky footer is at the bottom of the page usually, works completely fine. However on the page with an accordion position:absolute, bottom:0, doesn

How to write a countdown timer in JavaScript? [closed]

Just wanted to ask how to create the simplest possible countdown timer. There'll be a sentence on the site saying: "Registration closes

.tsx files throw errors while .js files work fine

in react-native, when I try to pass parameters to functions/components/etc, typescript files will always complain and it won't work until I have specified the t

How to create automatic catalog in InDesign with scripting in JavaScript

I have a following code which works great for importing excel to InDesign and creating automatic grid catalog. var doc = app.activeDocument; // get a text from