Category "javascript"

Chrome extension to replace text on webpage works only after manually refreshing webpage sometimes

I am developing a chrome extension to replace specific texts on webpage. For some websites, it works only after refreshing webpages manually with F5. For exampl

Unable to select text in resizable grid

I need to have Ext.panel.Grids (v6.2.0) that are both resizable and allow users to select the cell values. I have a bunch grids that I've set to be resizable wi

How to change a FullCalendar day cell via a js function call

When I look at examples of changing the appearance or contents of a day cell in FullCalendar, they look like this: calendar: { height: 650,

Electron-log with file transport is forcing app reload

I am using the electron-todo template and trying to create a log file that recovers the data in the event of a crash. The app reloads every time the log file is

what is the equivalent of Java's System.out.print() in javascript [duplicate]

It seems console.log() is the equivalent of System.out.println() How to print strings in the same line with multiple calls? Like: for (let i=0

Why doesn't typescript warn about the return type in this function?

For example, I have an onClick handler on a <div> tag. The handler should expect a return type of React.MouseEventHandler<HTMLDivElement> | undefine

React js Compiled with warnings

I am junior backend developer but I use the react library in my clone projects After updating the react script, I started getting a lot of errors in my project.

How to communicate with 2 new Promise with each other

So I am trying to connect 2 new Promise with each other so I can send information to each other. So I want to use image.url which is made in the first promise b

window.print() doesn't work on mobile browswer

I'm using this function to open a new tab with the html content take from another file and then print it. When I use it on a descktop browser it works fine. It

How do I change object shape by iteration/permutation?

I am a design student and have been given the task to create a grid of shapes in illustrator by permutation (I would say it´s iteration but then again I h

How to crawl the content of the page?

I hope to climb this page, but I don't know why I can't climb it successfully. I see a nice Web Page, I want to get it, Facebug555 I have no Python background!

Instead of adding value i'm replacing the value of array

Hi all i'm trying to get an array of Sizes and Color which is inside an object. So when we click on the input a handler will be call i.e., clickHandler() but th

Vue Array Class Proxy Not Reacting

I have a class that extends Array, and as part of it, I want to intercept changes that are made to its properties, so I use Proxy, which is what I return from i

Handling inline URLs with Next.js

I'm building an ecommerce platform where users will be using both our domain and their own domains like below. ourplatform.com/username theirdomain.com I'd like

Can't generate base64 string from react signature canvas in react

I am working on a react project for taking a signature from users. I am using react-signature-canvas to sign users. I want the signature data to be saved in th

How to resize a set of grid boxes to fit its parent container when a certain number is provide on prompt command

How do I fix this code? Regardless of the user input from 1 to 100, the grid should only fit into the parent container, and it should not expand the height or w

Dynamically access object property using variable

I'm trying to access a property of an object using a dynamic name. Is this possible? const something = { bar: "Foobar!" }; const foo = 'bar'; something.foo; //

Javascript objects equality vs using the spread operator to create new objects [duplicate]

When I have an object defined as such, const obj = { first: "hey", second: "hello" } and I do not wish to modify this but create a ne

How to implement this function declaration or function expression with arrow function? [closed]

<p class="qn"><a href="#"> Question:What is JavaScript?</a></p> <p class="answ "> JavaScript is a ligh

How to solve map loop not working to print data ( component ) ? React

I have three componente ComponentFather ( grand Parent component ) ComponentChild ( Child component of ComponentFather) ComponentChildChild ( Child component of