I have created an HTML form that takes in user data and using exceljs and a few other libraries I store this data into an excel spreadsheet. This part of my code works perfectly fine. However, when I refresh the server, the data stored in the excel file previously gets deleted. I believe the reason is that I …
How to make a simple fade in/out panel with jQuery?
I’m trying to make a text fade in and fade out, alternately, as you click a button, using jQuery. I came up with this code: That works only once (fades in first click, fades out second) and the button stops working forever. If I comment out line 5, the button works once and everytime I press it again, t…
When clicking on a button inside another button, the functions for both buttons are run
I have show-button that, when clicked, expands and shows some text and a collapse-button: When show-button is clicked, it expands and shows the paragraph and the collapse button. When the collapse-button is clicked, it collapses back to the original size where it’s all hidden. The problem is the followi…
Concurrency optimization job in V8
When concurrency optimization is triggered, a new optimization job will be dispatched to a child-thread to complete. How does Runtime know that the optimization job has been completed? I’ve found that in runtime function StackGuard, the optimized code will be set in JSFunction, but I don’t know ho…
How to dynamically create multiple alerts inside mui v5 Snackbar
I am calling an API to do few actions. I want to take the response of each action and show it inside Snackbar/alert. I am able to show only the first response and nothing else even after iterating the messages in a map. Here is my business logic calling the api setNotify will open the Snackbar with the alerts…
React get value from a class
I have a component where i get the distance from one point to another, with Google Maps (DirectionsRenderer). What i want, is to use this data in a h1 This is my return EDIT: ShowProduct.js (This is where i get the distance) ProductCard.js (This is where want to use it) Answer You need to set up a state using…
JS: XHR loads files (>50MB) immediatly
I’m making a internet speedtest app with Node.js. Everything works fine expect the download test. I normally download at 8Mbits/s but when I try XHR requesting a text file / image (about 256 MByte) at /public/chunk/somefile.txt for example, it downloads it within 1 second which is impossible. Then I che…
AppleScript Hash Symbol (#) in URL
I have this Automator AppleScript to translate texts. It works, but only with one word. If I select two words or more to translate, it changes the hash (#) in the URL to %23, like this https://www.deepl.com/translator%23pt/en/ and I get a 404 Not Found. Answer I’d use ‘Listing 32-7 AppleScriptObjC…
React JS fetching data (error: Cannot read properties of undefined)
i am just trying to learn JavaScript. I have to create a web application for school. Now i am trying to fetch data from a self written api. The backend is written with express, the frontend with JavaScript. I have got a overview page, where all products are shown. After clicking on the detail button, the user…
ValidationPipe doesn’t strip given object in Nestjs
I’m using Nestjs and Mongoose orm the problem is ValidationPipe doesn’t delete invalid props from request and send given(raw) request to my service. This is main.ts and this is update-category.dto And finally this is category.service Here is my simple controller when “given categories”…