Category "javascript"

Contact Form 7 - Conditionally/Dynamically Attach Local Files to Email Based on Input Selection

I have a number of checkboxes that indicate the item that is ordered through our online order form system. For each item selected there is a corresponding .pdf

Sum numbers inside a table

Can anyone help me how to sum numbers inside a table in React.js? My scenario is that I have Product table, inside product it has header column (no, product nam

Repeat a loop a number of times

// What's the minimum number of times you have to flip a coin before you can have three consecutive flips that result in the same outcome (either all three are

Aurelia hiding/ and showing div element when button click is not working

I am trying to hide and show div element based on the button that is clicked. I used if.bind and show.bind, but neither of them is working. View: <div class=

Unexpected identifier '_classCallCheck'. Import call expects exactly one argument

Unexpected identifier '_classCallCheck'.import call expects exactly one argument. Problem with React Native. I tried everythig from google, but it didn't work.

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