2,526,810 questions
0
votes
0
answers
3
views
problem in updating products while preloading them and cant
this is gonna be a long one so if you help me i would really appreciate it.
i have a page where both create and update product is.
my create page works find but i want this page to do update too so ...
0
votes
0
answers
18
views
Unexpected line appears briefly when scrolling up — not caused by border or shadow in vanilla css, js and html [closed]
Screenshot attached,I'm encountering a strange visual glitch on my website. When I scroll up, a horizontal line briefly appears near the top of the page and then disappears. I initially suspected it ...
-1
votes
1
answer
41
views
ESM & CommonJS Dual Support in an Existing Node.js Project
I'm updating a Node.js project to support both CommonJS and ES Modules (Dual Package).
My current issue appears when trying to load the module from the project root using exports field instead of main....
0
votes
0
answers
21
views
React-three-fiber: Cannot convert undefined or null to object (useRef)
I’m running into a strange issue with react-three-fiber that only shows up in development, but not after deploying to Vercel.
Here’s my setup:
<Canvas gl={{ antialias: true }} camera={{ position: [...
-2
votes
0
answers
38
views
How would I make a dropdown of numbers to select in the input value rather than entering the number? [closed]
const DEFAULT_TIME = 0;
const TIMER_INTERVAL_MS = 1000;
const BLINK_CLASS = 'blink';
const BEEP_SOUND_URL = 'https://assets.mixkit.co/active_storage/sfx/1714/1714-preview.mp3';
let countdownInterval;
...
1
vote
0
answers
20
views
What domain to add to Firebase Authentication for Firebase Studio with Google Auth?
I'm using Firebase studio to generate a small app, with Google Auth enabled. The app shows up fine, but when trying to use the Google Auth, like this:
async function logInWithGoogle(auth: Auth) {
...
-3
votes
0
answers
51
views
Can't declare variables used in mathematical equations output [closed]
I'm just starting JavaScript and I can't declare a variable. Possible that it is being declared but when I use the variables in a math equation there is no output from that equation.
For example:
let ...
0
votes
0
answers
43
views
Is it possible to connect to a local Python server using secure web sockets from a browser console on an HTTPS webpage?
We installed websockets for Python on macOS using this terminal command:
(.venv) a@as-MacBook-Pro dic % python3 -m pip install websockets
server.py:
#!/usr/bin/env python3
"""Secure ...
0
votes
0
answers
42
views
Why does querySelectorAll return an empty NodeList inside my custom class even though elements exist? [duplicate]
I created a small UI class to encapsulate DOM operations:
this.items is always an empty NodeList when the script is loaded in the <head> (not at the end of the body).
If I move the script to the ...
-2
votes
4
answers
77
views
Why is my JavaScript querySelectorAll not selecting elements by ID?
I’m trying to select multiple <p> elements in my HTML using querySelectorAll, but it’s not working.
Here’s my code:
<p id="ss">Paragraph 1</p>
<p id="ss">...
0
votes
1
answer
53
views
"grid-template-columns" and "grid-template-rows" style properties not getting set by script
function init() {
let x = 12;
let y = 8;
let content = document.getElementById("content");
let grid = content.appendChild(document.createElement("div"));
grid....
-1
votes
0
answers
33
views
map not loading, what could be the problem? [closed]
I’m building a checkout page with React (Vite + TailwindCSS + Redux) and using React‑Leaflet for the delivery location map. The map renders, but only the marker shows — no roads or tiles are displayed....
-2
votes
1
answer
32
views
How do I categorize products by price and display them on different pages using JavaScript? [closed]
I am building a shopping website for my stationery shop.
I have items like pen, pencil, book, copy, scale, bat, ball, etc.
I want to categorize products into price ranges:
Budget (₹10–₹100)
Mid-...
Advice
1
vote
3
replies
94
views
HTML static webpage - how would I have any of the files present in a particular directory be selected in a src
How would I go about, in an HTML webpage, having a random file in a specific directory be selected in a src? My intent is to have a randomized audio file autoplay whenever I open any webpage on my ...
-1
votes
1
answer
34
views
Failed to fetch when GETting json file from backend using Jwt Token
I am using a spring boot as backend and react frontend to create a website and I am encountering an error when fetching a user profile using browser from the backend.After login i managed to generate ...
2
votes
1
answer
91
views
How can I display the Persian language fonts?
I use my custom Persian font in jsPDF, but characters for this font show me wrong.
I hear
The IranNastaliq font uses the 'cswh' feature for such ligatures. 'cswh' is default-off according to the ...
-6
votes
1
answer
60
views
Backslash escaping issue in AI generated answers [closed]
So, there is a websocket server (game) and requires socket.io messages like this: 42["game:chat-public:msg","{\"id\":\"2qxgs2\",\"pId\":\"nfityk\"...
-1
votes
1
answer
40
views
Electron IPC: File objects arrive as empty objects {} in main process
Problem
I'm trying to send multiple files from the renderer process to the main process using Electron's IPC, but the file objects arrive empty.
Renderer Process:
if (files?.length > 1) {
window....
0
votes
0
answers
37
views
Why does "message:successful_payment" event work randomly?
As you can see in my short video example event message:successful_payment sometimes doesn't run after payment. In my video example there was only one execution after 3 payments (only the second ...
-1
votes
0
answers
48
views
Why doesn’t my CSS animation trigger when toggling a class with JavaScript? [closed]
I’m trying to animate a div when a button is clicked. The class is added correctly, but the animation doesn’t run. Here’s my minimal code:
function toggleBox() {
document.getElementById("box")....
-4
votes
2
answers
92
views
Draw a diamond pattern, representing the top face of a cube [closed]
I am trying to produce a multi-colored cube in perspective, a Minecraft logo, on an HTML canvas.
This is part of my code for producing the top face of that cube:
for (let i = 0; i < 16; ++i) {
...
-2
votes
0
answers
32
views
Why is my JavaScript function returning undefined even though the variable is declared? [duplicate]
I am trying to understand why my JavaScript function returns undefined even though I have already declared and assigned a value to the variable inside the function. Here is the code I wrote:
function ...
0
votes
0
answers
45
views
Mobile Chrome: Fixed position overlay disappears when scrolling inside sidebar [closed]
Problem
I have a mobile sidebar with a dark overlay (backdrop). When the sidebar is open and the user scrolls inside the sidebar, the overlay disappears or becomes unstable on Chrome mobile (Android). ...
Best practices
0
votes
1
replies
45
views
What’s the best architecture for mixing local AI + cloud AI inside a React/JS app without turning the codebase into spaghetti?
I’m trying to design a “future-proof” React/JS setup where the app can switch between different AI backends (local models like WebGPU/WebLLM, API models like OpenAI/Gemini, and maybe even custom ...
-4
votes
0
answers
83
views
Token in HttpOnly Cookie not being send when using include [closed]
I'm trying to make an simple chat website for a school project. The frontend is vanilla JS and backend is ASP DOTNET 8. It is now that I have a lot of trouble with authorization. Login and register ...
-1
votes
0
answers
47
views
Unable to download webpack in windows [closed]
I have latest version on node (v25.0.0) and npm (11.4.2) but still unable to download.
I used below command
npm i --save -D webpack
It gave me
up to date, audited 18 packages in 6s found 0 ...
0
votes
0
answers
30
views
App Store Connect API(Nest Js): Subscription created but status shows "Missing Metadata" [closed]
I'm automating iOS subscription setup using the App Store Connect API(Nest Js).
All steps (group, subscription, localization, screenshot upload, pricing) complete successfully.
However, in App Store ...
0
votes
0
answers
41
views
getting spacings and alignments in jsonforms correctly
Currently, I'm trying to use jsonforms to create different forms for my website, and I'm using custom buttons and input fields (using custom renderers) to render the form, currently I'm interested in ...
0
votes
0
answers
26
views
How to reliably capture high-quality audio/transcripts from Google Meet using a bot (without official API)? [closed]
I’m building a system where a bot joins a Google Meet call and extracts live transcription.
Right now, I’m injecting JavaScript into the Meet tab (through a browser automation bot) and scraping the ...
-1
votes
0
answers
34
views
Geofencing logic is Optimized or not for 1000 length gps position data or something 2000 geofencing lat log center? [closed]
I am receiving position data from a GPS device and fetching geofence latitude-longitude coordinates from my database. I also check which geofence is linked to which child and get the parents’ FCM ...
0
votes
0
answers
66
views
rails 8 error: Uncaught SyntaxError: import declarations may only appear at top level of a module
I have a new Rails 8 application built with Bootstrap, Ruby 3.4.7, MySQL, and Haml, running in Firefox 145.
It all looks good, except for the uncaught exception:
Uncaught SyntaxError: import ...
2
votes
2
answers
113
views
Light Mode Flash (in dark mode) On Reload Page
Always I reload any page happens a quick flash that changes the entire system to dark mode and comes back again, but really quick.
Before, this was happens also on dark mode too, but I could fix it ...
-1
votes
0
answers
24
views
Supabase Realtime Broadcast service sending but not receiving messages
I have an app where users are able to join a group and broadcast messages to that group. This is the relevant code:
await supabseClient.realtime.setAuth();
const channel = supabseClient.channel('test'...
4
votes
1
answer
58
views
Regex validator with expression [closed]
I am trying to validate the input based on previous selection using SurveyJS. The input in last section of Duration should depend on previous selection of Days or Months or Years.
If I keep only ...
-1
votes
0
answers
29
views
How to manipulate the property "Show as Warning"? [closed]
I am using FormIO version 6.14.
In the "Select Component", under the "Validation" tab, in the "Custom Validation" (JavaScript) section, I see a property called Show as ...
2
votes
0
answers
39
views
Weird OpenAI streaming bug: concurrent JS streams randomly mix chunks across responses
I’m hitting a super weird issue with OpenAI’s streaming API and I’m lowkey losing my mind here so if anyone ran into this before pls tell me wtf is going on because I can’t tell anymore if it’s me or ...
Best practices
0
votes
2
replies
36
views
How to determine if a TypedArray is signed?
I am working on a byte editor like DataView but with more features and I was wondering how to detect if a TypedArray was signed or not.
I already have this,
const signedTypes = new Set([
Int8Array,...
0
votes
0
answers
32
views
Svelte with SVAR dynamic DataGrid: forced update
I'm trying to implement data logger using Svelte and SVAR's dynamic DataGrid.
Log data array is updated by polling REST API with a given interval (I'm using REST mockup for now).
For the first rows ...
Best practices
0
votes
2
replies
74
views
javascript : how to display and scroll a remote pdf, on a browser non dependant way
I wish to display in an html page and control its scrolling, the image of a pdf hosted on a server.
I am currently using Mozilla’s pdf.js scripts, which work well for pdf files stored on my computer.
...
0
votes
0
answers
16
views
CKEditorError: plugincollection-plugin-not-found {"plugin": null} when integrating custom CKEditor5 plugin with Drupal 10
I am trying to integrate a custom CKEditor 5 plugin (LanguageTool) into Drupal 10 using a custom module. The plugin builds successfully, but when Drupal loads the editor, the browser console shows:
...
0
votes
2
answers
49
views
How to display <NavLink> components outside MemoryRouter in React Router? [duplicate]
How to display <NavLink> components inside the Footer? I cannot place the Footer inside RouterProvider. The Footer component should be displayed on every page.
function App() {
const router = ...
-3
votes
3
answers
153
views
Why does the checkbox become unclickable when width is lowered?
This is a incomplete website design I have been working with. The problem is when I reduce the width of the browser the triple dash appears but for some reason the checkbox becomes unclickable. I ...
1
vote
0
answers
38
views
Filter on worksheet columns re-triggering excel office.js custom functions even when it is not volatile functions
Excel re-triggers custom functions created in office.js api addin, but from documentation it should only re-trigger the formulas which are volatile function and in office.js api to specify custom ...
-1
votes
0
answers
42
views
How to open Outlook Web with a pre-filled search query (Gmail-style email filtering link)? [closed]
I’m implementing a password-reset and email-verification flow.
After we send an email to the user, we want to provide quick-access links such as:
“Search this email in Gmail”
“Search this email in ...
-2
votes
0
answers
80
views
How does datatable generates TDs? [closed]
I have this code :
this.dataTable2 = roles.$table.find(".organization-roles-table").DataTable({
paging: true,
serverSide: true,
processing: true,
deferLoading: 0, //prevents ...
2
votes
1
answer
64
views
React 18 streaming chat messages updating with stale state
i’m building a small AI chat ui in react (next.js app router, react 18) that streams tokens from my backend (openai style stream). basic flow:
user types a prompt
i push the user message into ...
0
votes
1
answer
57
views
Can't delete text from Google Doc
I’m trying to amend cells in a Google doc using their api. But I can’t seem to delete text from the tableCell.
I always get the invalid deletion range error. There is this duplicate question.
But the ...
-2
votes
2
answers
65
views
Missing semicolon in Playwright [closed]
I'm having error when trying to run below code:
import { test, expect} from '@playwright/test';
export class HomePage{
constructor(page){
this.page=page;
this.headerLabel='....
0
votes
0
answers
48
views
React SSR (being used as binding in cloudflare) HMR required in cloudflare worker
I'm working on a project, which uses a react SSR module (using Vite). Then I'm using a seperate worker which loads my site and there's link /load-ssr which loads the SSR module as a "binding"...
0
votes
1
answer
63
views
Alternative to local window storage in browser
I have an application that consists of three parts: a Python server application, a web front end that is connected to the Python tool via WebSocket, and a second website that is connected to the first ...