Category "javascript"

I was making api project but I am getting type error : undefined cannot read properties .. (reading 'map') in react js

I was making google clone website with rapid api but I end with getting this error. I have two files. Under this having my .map function and I am accessing my s

remove the sign at the beginning of the number - JS

I am getting a calculation result minus the resulting number. When I want to remove the minus sign in front of this number, I get a ".. is not function" warning

Synchronous JavaScript calls with CefSharp

I have to modify a project (C#) that uses CefSharp to automate a web task. Each time the code needs to execute a piece of Javascript, it uses: browser.ExecuteSc

How come my react hook isn't acting as expected? Importing problem? Destructuring issue?

Im trying to pass a state value into a component. Why is it working in one component and not working in another component in the same folder? I have the hooks i

Issue with looping through elements in an inner array

I'm having an issue looping through a set of css classes when an iteration of an outer loop is being executed. What I'm trying to do is to append all the paragr

React-native Expo SpeechOptions

I would like to use these expo react native events (onPause, onResume, onDone,...) which can be found here: https://docs.expo.dev/versions/v44.0.0/sdk/speech/#s

How to use Sweet Alert to send ajax DELETE request in Rails?

Problem 1: When I click the link, the sweet alert modal pops up for a split second, disappears, and redirects to route. Not sure why the modal is only flashing

Certain number question being missed in regex

I have the following if statement that removes the first instances of a number followed by the period. However, I am noticing it is missing to catch some of the

Angular: access variable which is declared inside subscribe function

I'm trying to access a variable inside a subscribe function but it returns to me undefined, please any suggestions: export class InboxmanagementComponent implem

Javascript object not adding new key value pair

Javascript object not adding new key value pair of sample and namespace. Empty object is return const { lruCaches } = state console.log('here123456') lruCaches[

How to I get new values from dynamic table using JavaScript

I want to create dynamic table that loads localStorage saved form data and make it editable. I can change cells values but when I try to save it JavaScript cons

My Wordpress 5.9 Admin section , in certain parts says "The Site Health check requires JavaScript"

My WordPress 5.9 Admin section , in certain parts such as the Tools>Site Health , section says "The Site Health check requires JavaScript" but all java scrip

Define type for higher order function

I have below controller which is a higher order method, const CourseController = { createCourse: ({ CourseService }) => async (httpRequest) => {

Spring Boot non-required requestParams default to null instead of empty string

I'm using Spring Boot for a search tool and I'm having an issue while passing the values from the front-end to the back-end. So, I have a select field that I'm

Sometimes getting Uncaught TypeError: myplayer.draw is not a function

I was trying to create a 2d game similar to survivio while referencing to a youtube video that teaches similar things with P5js and Socket.io. Although usually

convert epoch number to readable date in html

I have an issue with Stripe Invoices in my Angular App. The payment created field is populating in Firestore as a number and not a timestamp. Short of editing t

Cannot create Chart using Chart.JS @ 2.9.4

I am trying to create a chart using Chart.JS (v2.9.4) but am unable to. Here is the relevant HTML <canvas id="groupPerformanceChart" cl

Check if a point resides inside a leaflet semiCircle

I have some cell sites: every cell has angle degree orientation and a range in km I fetch these cells from the db and represent them on a leaflet map with semiC

using a devexpress custom confirm popup on pageunload

So I've been trying to prompt a confirmation before a page unloads but I don't want this default ok cancel browser confirmation popup so following the examples

Three.js how to add multiple Mixamo animations without skin to an FBX model?

I'm trying to create a game where there is an animated character that has multiple animations from Mixamo. I want the animation to change based on what the user