2,533,322
questions
0
votes
0
answers
11
views
How can I create a dynamic form in JavaScript that adds/removes input fields based on user interaction?
I’m working on a form where users need the ability to dynamically add or remove input fields based on their actions. Specifically, I want to create a form that starts with one input field and allows ...
0
votes
0
answers
9
views
How can I structure a Javascript object to record colour themes for seven items
I have an LED clock with the following elements that can take an RGB value
C for Cardinal points (ie 3,6,9,12 hrs or 15,30,45,60 mins)
F for One hour/Five minute points (ie 1,2,4,5,7,8,10,11 hrs or 5,...
0
votes
0
answers
25
views
Textarea not resizing correctly on input in JavaScript
I am trying to create a <textarea> that automatically resizes based on the content inside it. However, it sometimes grows too large, larger than the content is.
I am using tailwind in the code, ...
0
votes
1
answer
16
views
Cannot read properties of undefined (reading 'price') - React
I have an application in react being developed and I have the following error when the application tries to execute a method
Cannot read properties of undefined (reading 'price')
at ...
0
votes
0
answers
11
views
JS browser based game like ikariam and travian [closed]
I am new to the world of programming. I want to make a browser base game like ikariam or travian using javascript. Do you thing it is possible with javascript?
Can you suggest strategies for building ...
1
vote
2
answers
18
views
Taking specific values in a JSON file and make another JSON file with extracted
I have a JSON file that is taken from the data of the project. However, there are information in it that I do not need for my specific goal. This is the JSON data:
const toSql = [
{"id":1,...
0
votes
0
answers
8
views
wait two async calls to complete using NGXS dispatch
When you pass an array of actions (both an async call to an API) to the dispatch method in NGXS, does the dispatch method in NGXS internally use the forkJoin operator from RxJS to process the actions?
...
0
votes
0
answers
7
views
Laravel + vite + jQuery + tablesorter
I'm a bit junior in vite/npm and I have trouble loading all of the components. The PHP framework is Laravel 11 + Blade + vite.
The layout file contains jQuery in the head section (I had nearly the ...
-1
votes
0
answers
20
views
How can I get the URLs of the open browsers in JS [closed]
How can I get access to the different browsers open on my computer via JS
This browsers are open independently by the user
-2
votes
0
answers
7
views
Why is Replicate's API returning a empty object instead of the image URL, and how can I process it?
I am working on an AI-powered image generation app using Replicate's API, and I’m using the bytedance/sdxl-lightning-4step model to generate images from prompts. However, when I call the /api/generate-...
-4
votes
0
answers
16
views
Prior knowledge for dash.js projects? [closed]
What do I need know/learn before getting into dash.js? I'm a telecommunications student and I need to prepare myself for a dash.js project. I have basic knowledge of HTML and JS. Right now, I'm ...
0
votes
1
answer
24
views
react useRef on component unmount
I am making a social media app and I want to save the last scrollTop of a div in a component before the user changes the page and the component unmounts.
I tried doing this to save the scroll position ...
0
votes
0
answers
7
views
Chart.js LinearScale declaration in Import statement throws warning in VS Code
I have working v4.4.6 Chart.js code implemented in vanilla JS. It's using an import statement for tree shaking thus:
import {Chart, LineController, LineElement, PointElement, CategoryScale, ...
0
votes
0
answers
15
views
Remove class when element focus is removed, However only works when I shift tab instead of tab to new element. (left but not right)
I have an html with some children basically a menu but 2 elements have a submenu
<div class="menu-main-menu-container">
<ul id="menu-main-menu" class="header_menu&...
0
votes
1
answer
27
views
A way to get element id on click while using it as eventhandler
I programmed a a download progress bar. On click of the element it starts the download and shows the download progress. Sadly I cannot get it to work for multiple buttons and I am at a loss for ...