Category "javascript"

Setting textures on a model (Maya or Blender) via Java?

My task is: after selecting the user settings in the web application, this application must create a 3D model according to its settings (this building model wit

Trying to make a magnifying glass for html canvas that views cgm images

I'm attempting to build a loupe for a cgm canvas viewing application. I am trying to draw the main canvas containing a cgm image onto a smaller canvas that is

Trouble with JavaScript 2D array and nested loop

Will you please explain what I'm missing? And possibly what I can do to fix it. I'm receiving the error: TypeError: Cannot set properties of undefined (setting

How to force AWS Timestream to always interpret a number as double in an IoTCore rule?

Sensor payload decoders are mostly provided as javascript code by the sensor manufacturers. As I'm using different sensor types, I want to use the original deco

This is confusing, is there any tips so I can understand this better? (OOP Inheritances)

I am having difficulties understanding what to do here. Please bear with me I'm new to JavaScript and this section is giving me a hard time understanding how I

Images disappear in production build of React because the wrong path is generated

this is my first time posting here. I am having a problem with how the production build paths to my images are generated when I run npm run build. I have some l

How to access element from html that is stored in variable?

I have HTML that is stored in a variable. I am trying to figure out how do I access it. Fo example if I want to get element values by id or class name or apply

How can I use the filter() function to filter this set of data from API?

API Call code: const settings = { "async": true, "crossDomain": true, "url": "https://v3.football.api-sports.io/fixtures?date=2021-04-07", "method": "GET", "hea

Need help using a node js state-machine-cat API

I'm working on a UML project and needed a tool to render State Machine Diagram on a website. I found this cool API but I don't understand how to use it, I'm ver

react native e-library app error-failed to resolve dependency 'firebase'

I am in the middle of creating a simple library app. Here, I am trying to use firestore database in firebase console. I am coding this on the expo snack editor.

How to get document after user has logged in using google auth in firebase?

I want to fetch user information stored in firestore after the user has logged in using google sign in. I am checking whether the user exists or not. If the use

How to access the error message using yup and react-hook-form through formState?

I'm trying to display the error message I set using yup validation - my schema for displayName looks like this: displayName: yup.string().required("Please ente

How do I make stacking cards with CSS and JS?

I created the effect I want below: const container = document.getElementById("container"); const boxes = document.querySelectorAll(".box"); const clearBtn =

When i click on delete button it deletes all notes after that note where i have clicked

To run this thats why i added css and html also, What i want tnat when i click on any notes delete button that note should be deleted however it deletes other n

getElementsByClassName - Template inserted direct child can not be found under specific conditions

TLDR - See example HTML. First console.log call shows an empty resultset. I know how the fix this, but why does this happen? Chrome (101.0.4951.54) / Edge (101.

get the percentage difference passed

I need to get the distance value as a percentage so that I can use it in progress bar. I have already tried to divide and multiply and subtract everything among

Vue web component prop not being set through html attribute

I've got a vue web component with a numeric prop on it, and through some testing have found that doing something like this doesn't work in setting the prop valu

Remove array duplicates by property javascript

I have a list of objects: [{name: "bob", age: "14"}, {name: "bob", age: "16"}, {name: "sue", age: "21"}] I need a simple way to filter out duplicates with

NodeJS hendt/ebay-api / getOrders / Error - Insufficient permissions to fulfill the request

So I am using the hendt/ebay-api library but having no success with the getOrders call. Here's the auth scopes I'm using when setting the ORIGINAL User access t

React js Navigate on click of MUIDatatable anchor tag

I am using react js to develop my project.I am using React MUIDatatable to bind the data, which I am receiving from API as shown below. I am facing issue, when