2,523,237 questions
Advice
0
votes
1
replies
18
views
How to compare to Dictionary objects in js
I was solving a problem, and Its important to compare both dictionary, but js doesn't support it I cant use operator like this == or === to compare 2 objects, how can I do that without using any ...
Best practices
0
votes
1
replies
31
views
Confused about React TypeScript function and functional component declarations
I'm wondering why some ways of declarations are valid while others are not and are throwing errors as shown below:
Correct
export const useDebounce = <T,>(val: T): T => {
const [...
Best practices
0
votes
0
replies
13
views
How to "sync" Prisma with sessions?
I have a node js code that authenticates with cookies and sessions:
import express from "express";
import session from "express-session";
import postgreSession from "connect-...
0
votes
0
answers
22
views
Fresh Next.js install throws createClientModuleProxy / buildId errors
Fresh Next.js install throws createClientModuleProxy / deploymentId / buildId errors on Node.js v24
I created a fresh Next.js app using:
npx create-next-app@latest my-app
Then I ran:
npm run dev
...
-2
votes
0
answers
32
views
Error sending HTML form data with JavaScript front end through Flask backend to MySQL database
I get the error "400 (BAD REQUEST)" in the browser (dev tools) console when trying to send HTML form data with JS frontend to MySQL database through a flask back end.
HTML form:
<form id=&...
0
votes
2
answers
66
views
Closures with Async functions
so I saw that closures (aka functions that return whole functions) are a neat way to have a function keep variables without needing to pollute globals too much, now the problem is that when I try this ...
0
votes
0
answers
43
views
highlighting text in abc when clicking on rendered music
I've implemented a simple abc editor using Paul Rosen's abc-basic.js with the ability to transpose the key in the rendered output. I've used the excellent example at https://examples.abcjs.net/editor-...
-2
votes
1
answer
69
views
How I use the value of LocalStorage in other .js [closed]
Im doing a HTML forms and I dont know how to take the value of LocalStorage.
I dont know how to use it in other .js, adding the code:
let descripcion = document.getElementById("descripcion")
...
-6
votes
0
answers
63
views
How to handle asynchronous JSON schema parsing changes from a dynamic sports API endpoint in JavaScript? [duplicate]
I am developing a client-side web application that needs to fetch live sports telemetry directly from an infrastructure pipeline hosted on a custom domain.
When I make an asynchronous GET request to ...
-6
votes
1
answer
129
views
JavaScript frontend not sending data through Flask backend to MySQL database [closed]
I am getting the error in the screenshot below when I try to send data from my JavaScript front end to MySQL database through a Flask back end.
Python is ran in terminal below with no output errors.
...
1
vote
1
answer
56
views
Disable custom button in the fc-header-toolbar with 'disable' in stead of CSS
We have defined a custombutton which is diabled \enabled on a certain value. This is working so far:
I'm working with Vue.
const updateMyCustomButton = async (): Promise<void> => {
await ...
1
vote
1
answer
59
views
Where can I find a list of valid values for esbuild's "target" property?
This is not answered by the docs https://esbuild.github.io/api/#target
https://github.com/search?q=repo%3Aevanw%2Fesbuild%20node22&type=code
node22 is a valid target according to their CHANGELOG ...
Best practices
0
votes
5
replies
76
views
How to enqueue custom JavaScript only on Elementor pages in WordPress?
I’m working on a WordPress website that uses Elementor on some pages, but not across the entire site.
I need to load a small custom JavaScript file only on pages that are built with Elementor, because ...
1
vote
1
answer
132
views
How to find the HTML element that causes a windows's minimum width? [closed]
Target device is a hand held scanner (~6" diagonal). Web page is primitive, self-coded HTML with very minimal CSS and JS. On my PC I can make the page really wide and the elements reposition ...
-1
votes
0
answers
71
views
Userscript for manipulating CSS in Shadow DOM? [closed]
For years I have been using a JS userscript to change various things on Service Now pages - example here:
// ==UserScript==
// @name Service Now 001
// @version 1.0
// @description Service ...
