Category "javascript"

How to disable typing but allow copy and paste in a text box in Angular 8?

I want to restrict typing in a text box but I need to paste anything inside that textbox in Angular

Get data that's in the JSON but not in the table/HTML

I'm trying to get the information that is in the url but JavaScript returns to the HTML table "undefined". Does anyone have any idea what mistake I might be mak

Why is my cors headers not matching even when they are the same?

I am using passport js with REACT and during fetching the logged in user-data the cors header of fetch isnt matching even though they are the same. this is wh

How can we re-write the same code as per Zoho deluge?

I need some help in re-formatting the JS script to Zoho Deluge script. This API sends whatsapp template message. I was able to parse headers but not custom para

I can't get the value from option

I tried to get the value like this <select onChange={e => setPageSize(e.target.value)} name="" id=""> <option value="

nodejs oracledb performance diff by the way of binding params

I wonder if there is a performance difference between below cases. nodejs oracledb lib - express server connection code - 1 query, 1 connection whenever I send

How to transfer data from a form for Whatsapp to another page before submitting

I created a form in HTML that sends the data to WhstsApp, but I need that before going directly to WhatsApp, go through another page so that I can put the Googl

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